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

Go to the source code of this file.

Functions

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

Function Documentation

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

dssmatrix*double operator

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

References _(), and dssmatrix::data.

32 {CPPL_VERBOSE_REPORT;
33  dssmatrix newmat(mat);
34 
35  const std::vector<dcomponent>::iterator newmat_data_end =newmat.data.end();
36  for(std::vector<dcomponent>::iterator it=newmat.data.begin(); it!=newmat_data_end; it++){
37  it->v *=d;
38  }
39 
40  return _(newmat);
41 }
Real Double-precision Symmetric Sparse Matrix Class.
Definition: dssmatrix.hpp:3
_dcovector _(dcovector &vec)
_dssmatrix operator/ ( const dssmatrix mat,
const double &  d 
)
inline

dssmatrix/double operator

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

References _(), and dssmatrix::data.

46 {CPPL_VERBOSE_REPORT;
47  dssmatrix newmat(mat);
48 
49  const std::vector<dcomponent>::iterator newmat_data_end =newmat.data.end();
50  for(std::vector<dcomponent>::iterator it=newmat.data.begin(); it!=newmat_data_end; it++){
51  it->v /=d;
52  }
53 
54  return _(newmat);
55 }
Real Double-precision Symmetric Sparse Matrix Class.
Definition: dssmatrix.hpp:3
_dcovector _(dcovector &vec)