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 _zhsmatrix::data.

11 {CPPL_VERBOSE_REPORT;
12  const std::vector<zcomponent>::iterator mat_data_end =mat.data.end();
13  for(std::vector<zcomponent>::iterator it=mat.data.begin(); it!=mat_data_end; it++){
14  it->v =-it->v;
15  }
16 
17  return mat;
18 }
std::vector< zcomponent > data
matrix data
Definition: _zhsmatrix.hpp:12