VERB_code_2.3
_zrovector-unary.hpp
1 //=============================================================================
3 inline const _zrovector& operator+(const _zrovector& vec)
4 {
5 #ifdef CPPL_VERBOSE
6  std::cerr << "# [MARK] operator+(const _zrovector&)"
7  << std::endl;
8 #endif//CPPL_VERBOSE
9 
10  return vec;
11 }
12 
13 //=============================================================================
15 inline _zrovector operator-(const _zrovector& vec)
16 {
17 #ifdef CPPL_VERBOSE
18  std::cerr << "# [MARK] operator-(const _zrovector&)"
19  << std::endl;
20 #endif//CPPL_VERBOSE
21 
22  for(long i=0; i<vec.L; i++){ vec.Array[i]=-vec.Array[i]; }
23  return vec;
24 }
long L
vector size
Definition: _zrovector.hpp:7
friend _zrovector operator-(const _zrovector &)
Definition: _zrovector-unary.hpp:15
(DO NOT USE) Smart-temporary Complex Double-precision Row Vector Class
Definition: _zrovector.hpp:3
std::complex< double > * Array
1D Array to store vector data
Definition: _zrovector.hpp:8
friend const _zrovector & operator+(const _zrovector &)
Definition: _zrovector-unary.hpp:3