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

Go to the source code of this file.

Functions

_zgsmatrix operator* (const zgsmatrix &mat, const double &d)
 
_zgsmatrix operator/ (const zgsmatrix &mat, const double &d)
 

Function Documentation

_zgsmatrix operator* ( const zgsmatrix mat,
const double &  d 
)
inline

zgsmatrix*double operator

Definition at line 30 of file zgsmatrix-double.hpp.

References _(), and zgsmatrix::data.

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

zgsmatrix/double operator

Definition at line 44 of file zgsmatrix-double.hpp.

References _(), and zgsmatrix::data.

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