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  zrovector newvec(vec.L);
23  for(long i=0; i<newvec.l; i++){ newvec.array[i]=-vec.Array[i]; }
24 
25  return _(newvec);
26 }
std::complex< double > *const & array
1D array to store vector data (readable)
Definition: zrovector.hpp:13
friend _zrovector operator-(const _zrovector &)
Definition: _zrovector-unary.hpp:15
Complex Double-precision Row Vector Class.
Definition: zrovector.hpp:3
(DO NOT USE) Smart-temporary Complex Double-precision Row Vector Class
Definition: _zrovector.hpp:3
long const & l
vector size (readable)
Definition: zrovector.hpp:12
friend const _zrovector & operator+(const _zrovector &)
Definition: _zrovector-unary.hpp:3