CPPLapack
 All Classes Files Functions Variables Friends Pages
zgematrix-unary.hpp
Go to the documentation of this file.
1 //=============================================================================
2 /*! +zgematrix operator */
3 inline const zgematrix& operator+(const zgematrix& mat)
4 {CPPL_VERBOSE_REPORT;
5  return mat;
6 }
7 
8 //=============================================================================
9 /*! -zgematrix operator */
10 inline _zgematrix operator-(const zgematrix& mat)
11 {CPPL_VERBOSE_REPORT;
12  zgematrix newmat(mat.m,mat.n);
13  for(CPPL_INT i=0; i<newmat.m*newmat.n; i++){ newmat.array[i]=-mat.array[i]; }
14 
15  return _(newmat);
16 }
_zgematrix operator-(const zgematrix &mat)
_dgematrix i(const _dgbmatrix &mat)
CPPL_INT n
matrix column size
Definition: zgematrix.hpp:10
Complex Double-precision General Dence Matrix Class.
Definition: zgematrix.hpp:3
comple * array
1D array to store matrix data
Definition: zgematrix.hpp:11
(DO NOT USE) Smart-temporary Complex Double-precision General Dence Matrix Class
Definition: _zgematrix.hpp:3
const zgematrix & operator+(const zgematrix &mat)
CPPL_INT m
matrix row size
Definition: zgematrix.hpp:9
_dcovector _(dcovector &vec)