CPPLapack
 All Classes Files Functions Variables Friends Pages
Functions
zgematrix-unary.hpp File Reference

Go to the source code of this file.

Functions

const zgematrixoperator+ (const zgematrix &mat)
 
_zgematrix operator- (const zgematrix &mat)
 

Function Documentation

const zgematrix& operator+ ( const zgematrix mat)
inline

+zgematrix operator

Definition at line 3 of file zgematrix-unary.hpp.

4 {CPPL_VERBOSE_REPORT;
5  return mat;
6 }
_zgematrix operator- ( const zgematrix mat)
inline

-zgematrix operator

Definition at line 10 of file zgematrix-unary.hpp.

References _(), zgematrix::array, i(), zgematrix::m, and zgematrix::n.

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 }
_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
CPPL_INT m
matrix row size
Definition: _dgematrix.hpp:9
comple * array
1D array to store matrix data
Definition: zgematrix.hpp:11
CPPL_INT m
matrix row size
Definition: zgematrix.hpp:9
_dcovector _(dcovector &vec)