CPPLapack
 All Classes Files Functions Variables Friends Pages
_zhsmatrix-unary.hpp
Go to the documentation of this file.
1 //=============================================================================
2 /*! +_zhsmatrix operator */
3 inline const _zhsmatrix& operator+(const _zhsmatrix& mat)
4 {CPPL_VERBOSE_REPORT;
5  return mat;
6 }
7 
8 //=============================================================================
9 /*! -_zhsmatrix operator */
10 inline _zhsmatrix operator-(const _zhsmatrix& mat)
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
const _zhsmatrix & operator+(const _zhsmatrix &mat)
(DO NOT USE) Smart-temporary Complex Double-precision Hermitian Sparse Matrix Class ...
Definition: _zhsmatrix.hpp:3
_zhsmatrix operator-(const _zhsmatrix &mat)