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

Go to the source code of this file.

Functions

_dssmatrix operator* (const double &d, const dssmatrix &mat)
 

Function Documentation

_dssmatrix operator* ( const double &  d,
const dssmatrix mat 
)
inline

double*dssmatrix operator

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

References _(), and dssmatrix::data.

4 {CPPL_VERBOSE_REPORT;
5  dssmatrix newmat =mat;
6 
7  const std::vector<dcomponent>::iterator newmat_data_end =newmat.data.end();
8  for(std::vector<dcomponent>::iterator it=newmat.data.begin(); it!=newmat_data_end; it++){
9  it->v *=d;
10  }
11 
12  return _(newmat);
13 }
std::vector< dcomponent > data
matrix data
Definition: dssmatrix.hpp:11
Real Double-precision Symmetric Sparse Matrix Class.
Definition: dssmatrix.hpp:3
_dcovector _(dcovector &vec)