CPPLapack
 All Classes Files Functions Variables Friends Pages
Functions
dsymatrix-double.hpp File Reference

Go to the source code of this file.

Functions

_dsymatrix operator* (const dsymatrix &mat, const double &d)
 
_dsymatrix operator/ (const dsymatrix &mat, const double &d)
 

Function Documentation

_dsymatrix operator* ( const dsymatrix mat,
const double &  d 
)
inline

dsymatrix*double operator

Definition at line 33 of file dsymatrix-double.hpp.

References _(), dsymatrix::darray, i(), and dsymatrix::n.

34 {CPPL_VERBOSE_REPORT;
35  dsymatrix newmat(mat.n);
36 
37  for(CPPL_INT j=0; j<mat.n; j++){
38  for(CPPL_INT i=j; i<mat.n; i++){
39  newmat.darray[j][i] =mat.darray[j][i]*d;
40  }
41  }
42 
43  return _(newmat);
44 }
_dgematrix i(const _dgbmatrix &mat)
Real Double-precision Symmetric Matrix Class [l-type (UPLO=l) Strage].
Definition: dsymatrix.hpp:3
CPPL_INT n
matrix column size
Definition: dsymatrix.hpp:10
double ** darray
array of pointers of column head addresses
Definition: dsymatrix.hpp:12
_dcovector _(dcovector &vec)
_dsymatrix operator/ ( const dsymatrix mat,
const double &  d 
)
inline

dsymatrix/double operator

Definition at line 48 of file dsymatrix-double.hpp.

References _(), dsymatrix::darray, i(), and dsymatrix::n.

49 {CPPL_VERBOSE_REPORT;
50  dsymatrix newmat(mat.n);
51 
52  for(CPPL_INT j=0; j<mat.n; j++){
53  for(CPPL_INT i=j; i<mat.n; i++){
54  newmat.darray[j][i] =mat.darray[j][i]/d;
55  }
56  }
57 
58  return _(newmat);
59 }
_dgematrix i(const _dgbmatrix &mat)
Real Double-precision Symmetric Matrix Class [l-type (UPLO=l) Strage].
Definition: dsymatrix.hpp:3
CPPL_INT n
matrix column size
Definition: dsymatrix.hpp:10
double ** darray
array of pointers of column head addresses
Definition: dsymatrix.hpp:12
_dcovector _(dcovector &vec)