CPPLapack
 All Classes Files Functions Variables Friends Pages
zhematrix-unary.hpp
Go to the documentation of this file.
1 //=============================================================================
2 /*! +zhematrix operator */
3 inline const zhematrix& operator+(const zhematrix& mat)
4 {CPPL_VERBOSE_REPORT;
5  return mat;
6 }
7 
8 //=============================================================================
9 /*! -zgematrix operator */
10 inline _zhematrix operator-(const zhematrix& mat)
11 {CPPL_VERBOSE_REPORT;
12  zhematrix newmat(mat.n);
13 
14  for(CPPL_INT j=0; j<mat.n; j++){
15  for(CPPL_INT i=j; i<mat.n; i++){
16  newmat(i,j) =-mat(i,j);
17  }
18  }
19 
20  return _(newmat);
21 }
(DO NOT USE) Smart-temporary Complex Double-precision Hermitian Matrix Class
Definition: _zhematrix.hpp:3
_dgematrix i(const _dgbmatrix &mat)
CPPL_INT n
matrix column size
Definition: zhematrix.hpp:11
_zhematrix operator-(const zhematrix &mat)
Complex Double-precision Hermitian Matrix Class [l-type (UPLO=l) Strage].
Definition: zhematrix.hpp:4
_dcovector _(dcovector &vec)
const zhematrix & operator+(const zhematrix &mat)