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

Go to the source code of this file.

Functions

const zhematrixoperator+ (const zhematrix &mat)
 
_zhematrix operator- (const zhematrix &mat)
 

Function Documentation

const zhematrix& operator+ ( const zhematrix mat)
inline

+zhematrix operator

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

4 {CPPL_VERBOSE_REPORT;
5  return mat;
6 }
_zhematrix operator- ( const zhematrix mat)
inline

-zgematrix operator

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

References _(), i(), and zhematrix::n.

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 }
_dgematrix i(const _dgbmatrix &mat)
CPPL_INT n
matrix column size
Definition: zhematrix.hpp:11
Complex Double-precision Hermitian Matrix Class [l-type (UPLO=l) Strage].
Definition: zhematrix.hpp:4
_dcovector _(dcovector &vec)