6 std::cerr <<
"# [MARK] zrovector::operator=(const _zrovector&)"
23 std::cerr <<
"# [MARK] zrovector::operator+=(const _zrovector&)"
29 std::cerr <<
"[ERROR] zrovector::operator+=(const _zrovector&)" << std::endl
30 <<
"These two vectors can not make a sumation." << std::endl
31 <<
"Your input was (" <<
L <<
") += (" << vec.
L <<
")."
48 std::cerr <<
"# [MARK] zrovector::operator-=(const _zrovector&)"
54 std::cerr <<
"[ERROR] zrovector::operator-=(const _zrovector&)" << std::endl
55 <<
"These two vectors can not make a subtraction." << std::endl
56 <<
"Your input was (" <<
L <<
") -= (" << vec.
L <<
")."
77 std::cerr <<
"# [MARK] operator+(const zrovector&, const _zrovector&)"
83 std::cerr <<
"[ERROR] operator+(const zrovector&, const _zrovector&)"
85 <<
"These two vectors can not make a sumation." << std::endl
86 <<
"Your input was (" << vecA.L <<
") + (" << vecB.
L <<
")."
93 for(
long i=0; i<vecA.L; i++){ vecB.
Array[i]+=vecA.Array[i]; }
103 std::cerr <<
"# [MARK] operator-(const zrovector&, const _zrovector&)"
109 std::cerr <<
"[ERROR] operator-(const zrovector&, const _zrovector&)"
111 <<
"These two vectors can not make a subtraction." << std::endl
112 <<
"Your input was (" << vecA.L <<
") - (" << vecB.
L <<
")."
118 for(
long i=0; i<vecA.L; i++){
130 std::cerr <<
"# [MARK] operator%(const zrovector&, const _zrovector&)"
136 std::cerr <<
"[ERROR] operator%(const zrovector&, const _zrovector&)"
138 <<
"These two vectors can not make a dot product." << std::endl
139 <<
"Your input was (" << vecA.L <<
") % (" << vecB.
L <<
")."
145 std::complex<double> val( zdotu_( vecA.L, vecA.Array, 1, vecB.
Array, 1 ) );
void shallow_copy(const _zrovector &)
Definition: zrovector-misc.hpp:73
zrovector & operator-=(const zrovector &)
Definition: zrovector-zrovector.hpp:46
void destroy() const
Definition: _zrovector-misc.hpp:3
long L
vector size
Definition: _zrovector.hpp:7
friend _zrovector operator-(const _zrovector &)
Definition: _zrovector-unary.hpp:15
zrovector & operator+=(const zrovector &)
Definition: zrovector-zrovector.hpp:22
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
zrovector & operator=(const zrovector &)
Definition: zrovector-zrovector.hpp:3
std::complex< double > * Array
1D Array to store vector data
Definition: _zrovector.hpp:8
friend std::complex< double > operator%(const zrovector &, const _zrovector &)
Definition: zrovector-_zrovector.hpp:127
friend const _zrovector & operator+(const _zrovector &)
Definition: _zrovector-unary.hpp:3