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

Go to the source code of this file.

Functions

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

Function Documentation

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

zgsmatrix*comple operator

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

References _(), and zgsmatrix::data.

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

zgsmatrix/comple operator

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

References _(), and zgsmatrix::data.

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