CPPLapack
 All Classes Files Functions Variables Friends Pages
_dssmatrix-double.hpp
Go to the documentation of this file.
1 //=============================================================================
2 /*! _dssmatrix*double operator */
3 inline _dssmatrix operator*(const _dssmatrix& mat, const double& d)
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 }
12 
13 //=============================================================================
14 /*! _dssmatrix/double operator */
15 inline _dssmatrix operator/(const _dssmatrix& mat, const double& d)
16 {CPPL_VERBOSE_REPORT;
17  const std::vector<dcomponent>::iterator mat_data_end =mat.data.end();
18  for(std::vector<dcomponent>::iterator it=mat.data.begin(); it!=mat_data_end; it++){
19  it->v /=d;
20  }
21 
22  return mat;
23 }
std::vector< dcomponent > data
matrix data
Definition: _dssmatrix.hpp:12
_dssmatrix operator/(const _dssmatrix &mat, const double &d)
(DO NOT USE) Smart-temporary Real Double-precision Symmetric Sparse Matrix Class
Definition: _dssmatrix.hpp:3
_dssmatrix operator*(const _dssmatrix &mat, const double &d)