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

-_zhematrix operator

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

References _zhematrix::darray, i(), and _zhematrix::n.

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 }
CPPL_INT n
matrix column size
Definition: _zhematrix.hpp:11
_dgematrix i(const _dgbmatrix &mat)
comple ** darray
array of pointers of column head addresses
Definition: _zhematrix.hpp:13