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

Go to the source code of this file.

Functions

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

Function Documentation

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

double*dsymatrix operator

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

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

4 {CPPL_VERBOSE_REPORT;
5  dsymatrix newmat(mat.n);
6 
7  for(CPPL_INT j=0; j<mat.n; j++){
8  for(CPPL_INT i=j; i<mat.n; i++){
9  newmat.darray[j][i] =d*mat.darray[j][i];
10  }
11  }
12 
13  return _(newmat);
14 }
_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)