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

Go to the source code of this file.

Functions

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

Function Documentation

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

double*zhsmatrix operator

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

References _(), and zhsmatrix::data.

4 {CPPL_VERBOSE_REPORT;
5  zhsmatrix newmat =mat;
6 
7  const std::vector<zcomponent>::iterator newmat_data_end =newmat.data.end();
8  for(std::vector<zcomponent>::iterator it=newmat.data.begin(); it!=newmat_data_end; it++){
9  it->v *=d;
10  }
11 
12  return _(newmat);
13 }
std::vector< zcomponent > data
matrix data
Definition: zhsmatrix.hpp:11
Complex Double-precision Hermitian Sparse Matrix Class.
Definition: zhsmatrix.hpp:3
_dcovector _(dcovector &vec)