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

Go to the source code of this file.

Functions

_zgsmatrix operator* (const comple &d, const zgsmatrix &mat)
 

Function Documentation

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

complex*zgsmatrix operator

Definition at line 3 of file complex-zgsmatrix.hpp.

References _(), and zgsmatrix::data.

4 {CPPL_VERBOSE_REPORT;
5  zgsmatrix 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 }
Complex Double-precision General Sparse Matrix Class.
Definition: zgsmatrix.hpp:3
std::vector< zcomponent > data
matrix data
Definition: zgsmatrix.hpp:11
_dcovector _(dcovector &vec)