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

Go to the source code of this file.

Functions

const zhsmatrixoperator+ (const zhsmatrix &mat)
 
_zhsmatrix operator- (const zhsmatrix &mat)
 

Function Documentation

const zhsmatrix& operator+ ( const zhsmatrix mat)
inline

+zhsmatrix operator

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

4 {CPPL_VERBOSE_REPORT;
5  return mat;
6 }
_zhsmatrix operator- ( const zhsmatrix mat)
inline

-zhsmatrix operator

Definition at line 10 of file zhsmatrix-unary.hpp.

References _(), and zhsmatrix::data.

11 {CPPL_VERBOSE_REPORT;
12  zhsmatrix newmat(mat);
13 
14  const std::vector<zcomponent>::iterator newmat_data_end =newmat.data.end();
15  for(std::vector<zcomponent>::iterator it=newmat.data.begin(); it!=newmat_data_end; it++){
16  it->v =-it->v;
17  }
18 
19  return _(newmat);
20 }
Complex Double-precision Hermitian Sparse Matrix Class.
Definition: zhsmatrix.hpp:3
_dcovector _(dcovector &vec)