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

Go to the source code of this file.

Functions

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

Function Documentation

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

dgsmatrix*double operator

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

References _(), and dgsmatrix::data.

32 {CPPL_VERBOSE_REPORT;
33  dgsmatrix 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 General Sparse Matrix Class.
Definition: dgsmatrix.hpp:3
_dcovector _(dcovector &vec)
_dgsmatrix operator/ ( const dgsmatrix mat,
const double &  d 
)
inline

dgsmatrix/double operator

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

References _(), and dgsmatrix::data.

46 {CPPL_VERBOSE_REPORT;
47  dgsmatrix 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 General Sparse Matrix Class.
Definition: dgsmatrix.hpp:3
_dcovector _(dcovector &vec)