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

Go to the source code of this file.

Functions

_zhsmatrix operator* (const zhsmatrix &mat, const double &d)
 
_zhsmatrix operator/ (const zhsmatrix &mat, const double &d)
 

Function Documentation

_zhsmatrix operator* ( const zhsmatrix mat,
const double &  d 
)
inline

zhsmatrix*double operator

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

References _(), and zhsmatrix::data.

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

zhsmatrix/double operator

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

References _(), and zhsmatrix::data.

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