CPPLapack
 All Classes Files Functions Variables Friends Pages
double-_dgsmatrix.hpp
Go to the documentation of this file.
1 //=============================================================================
2 /*! double*_dgsmatrix operator */
3 inline _dgsmatrix operator*(const double& d, const _dgsmatrix& mat)
4 {CPPL_VERBOSE_REPORT;
5  const std::vector<dcomponent>::iterator mat_data_end =mat.data.end();
6  for(std::vector<dcomponent>::iterator it=mat.data.begin(); it!=mat_data_end; it++){
7  it->v *= d;
8  }
9 
10  return mat;
11 }
_dgsmatrix operator*(const double &d, const _dgsmatrix &mat)
(DO NOT USE) Smart-temporary Real Double-precision General Sparse Matrix Class
Definition: _dgsmatrix.hpp:3
std::vector< dcomponent > data
matrix data
Definition: _dgsmatrix.hpp:11