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

Go to the source code of this file.

Functions

_dgsmatrix operator* (const double &d, const dgsmatrix &mat)
 

Function Documentation

_dgsmatrix operator* ( const double &  d,
const dgsmatrix mat 
)
inline

double*dgsmatrix operator

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

References _(), and dgsmatrix::data.

4 {CPPL_VERBOSE_REPORT;
5  dgsmatrix 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 }
Real Double-precision General Sparse Matrix Class.
Definition: dgsmatrix.hpp:3
std::vector< dcomponent > data
matrix data
Definition: dgsmatrix.hpp:11
_dcovector _(dcovector &vec)