My Project
zgematrix-unary.hpp
1 //=============================================================================
3 inline const zgematrix& operator+(const zgematrix& mat)
4 {
5 #ifdef CPPL_VERBOSE
6  std::cerr << "# [MARK] operator+(const zgematrix&)"
7  << std::endl;
8 #endif//CPPL_VERBOSE
9 
10  return mat;
11 }
12 
13 //=============================================================================
15 inline _zgematrix operator-(const zgematrix& mat)
16 {
17 #ifdef CPPL_VERBOSE
18  std::cerr << "# [MARK] operator-(const zgematrix&)"
19  << std::endl;
20 #endif//CPPL_VERBOSE
21 
22  zgematrix newmat(mat.M,mat.N);
23  for(long i=0; i<newmat.m*newmat.n; i++){ newmat.array[i]=-mat.Array[i]; }
24 
25  return _(newmat);
26 }
std::complex< double > *const & array
1D array to store matrix data (readable)
Definition: zgematrix.hpp:16
friend _zrovector operator-(const _zrovector &)
Definition: _zrovector-unary.hpp:15
Complex Double-precision General Dence Matrix Class.
Definition: zgematrix.hpp:3
(DO NOT USE) Smart-temporary Complex Double-precision General Dence Matrix Class
Definition: _zgematrix.hpp:3
long const & m
matrix row size (readable)
Definition: zgematrix.hpp:14
long const & n
matrix column size (readable)
Definition: zgematrix.hpp:15
friend const _zrovector & operator+(const _zrovector &)
Definition: _zrovector-unary.hpp:3