VERB_code_2.3
_zgbmatrix-unary.hpp
1 //=============================================================================
3 inline const _zgbmatrix& operator+(const _zgbmatrix& mat)
4 {
5 #ifdef CPPL_VERBOSE
6  std::cerr << "# [MARK] _zgbmatrix& operator+(const _zgbmatrix&)"
7  << std::endl;
8 #endif//CPPL_VERBOSE
9 
10  return mat;
11 }
12 
13 //=============================================================================
15 inline _zgbmatrix operator-(const _zgbmatrix& mat)
16 {
17 #ifdef CPPL_VERBOSE
18  std::cerr << "# [MARK] operator-(const _zgbmatrix&)"
19  << std::endl;
20 #endif//CPPL_VERBOSE
21 
22  for(long i=0; i<(mat.KL+mat.KU+1)*mat.N; i++){
23  mat.Array[i]=-mat.Array[i];
24  }
25  return mat;
26 }
friend _zrovector operator-(const _zrovector &)
Definition: _zrovector-unary.hpp:15
long N
matrix column size
Definition: _zgbmatrix.hpp:8
std::complex< double > * Array
1D Array to store matrix data
Definition: _zgbmatrix.hpp:11
long KU
upper band width
Definition: _zgbmatrix.hpp:10
(DO NOT USE) Smart-temporary Complex Double-precision General Band Matrix Class
Definition: _zgbmatrix.hpp:3
friend const _zrovector & operator+(const _zrovector &)
Definition: _zrovector-unary.hpp:3
long KL
lower band width
Definition: _zgbmatrix.hpp:9