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 /*! -_zhematrix operator */
10 inline _zhematrix operator-(const _zhematrix& mat)
11 {CPPL_VERBOSE_REPORT;
12  for(CPPL_INT j=0; j<mat.n; j++){
13  for(CPPL_INT i=j; i<mat.n; i++){
14  mat.darray[j][i] =-mat.darray[j][i];
15  }
16  }
17 
18  return mat;
19 }
(DO NOT USE) Smart-temporary Complex Double-precision Hermitian Matrix Class
Definition: _zhematrix.hpp:3
CPPL_INT n
matrix column size
Definition: _zhematrix.hpp:11
_dgematrix i(const _dgbmatrix &mat)
const _zhematrix & operator+(const _zhematrix &mat)
_zhematrix operator-(const _zhematrix &mat)
comple ** darray
array of pointers of column head addresses
Definition: _zhematrix.hpp:13