6 std::cerr <<
"# [MARK] operator+(const _zrovector&, const _zrovector&)"
12 std::cerr <<
"[ERROR] operator+(const _zrovector&, const _zrovector&)"
14 <<
"These two vectors can not make a sumation." << std::endl
15 <<
"Your input was (" << vecA.
L <<
") + (" << vecB.
L <<
")."
22 for(
long i=0; i<vecA.
L; i++){ vecA.
Array[i]+=vecB.
Array[i]; }
33 std::cerr <<
"# [MARK] operator-(const _zrovector&, const _zrovector&)"
39 std::cerr <<
"[ERROR] operator-(const _zrovector&, const _zrovector&)"
41 <<
"These two vectors can not make a subtraction." << std::endl
42 <<
"Your input was (" << vecA.
L <<
") - (" << vecB.
L <<
")."
48 for(
long i=0; i<vecA.
L; i++){ vecA.
Array[i]-=vecB.
Array[i]; }
59 std::cerr <<
"# [MARK] operator%(const _zrovector&, const _zrovector&)"
65 std::cerr <<
"[ERROR] operator%(const _zrovector&, const _zrovector&)"
67 <<
"These two vectors can not make a dot product." << std::endl
68 <<
"Your input was (" << vecA.
L <<
") % (" << vecB.
L <<
")."
74 std::complex<double> val( zdotu_( vecA.
L, vecA.
Array, 1, vecB.
Array, 1 ) );
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
(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 std::complex< double > operator%(const zrovector &, const _zrovector &)
Definition: zrovector-_zrovector.hpp:127
friend const _zrovector & operator+(const _zrovector &)
Definition: _zrovector-unary.hpp:3