6 std::cerr <<
"# [MARK] dcovector::operator=(const _dcovector&)"
23 std::cerr <<
"# [MARK] dcovector::operator+=(const _dcovector&)"
29 std::cerr <<
"[ERROR] dcovector::operator+=(const _dcovector&)" << std::endl
30 <<
"These two vectors can not make a sumation." << std::endl
31 <<
"Your input was (" << L <<
") += (" << vec.
L <<
")."
37 for(
long i=0; i<L; i++){ Array[i]+=vec.
Array[i]; }
48 std::cerr <<
"# [MARK] dcovector::operator-=(const _dcovector&)"
54 std::cerr <<
"[ERROR] dcovector::operator-=(const _dcovector&)" << std::endl
55 <<
"These two vectors can not make a subtraction." << std::endl
56 <<
"Your input was (" << L <<
") -= (" << vec.
L <<
")."
62 for(
long i=0; i<L; i++){ Array[i]-=vec.
Array[i]; }
77 std::cerr <<
"# [MARK] operator+(const dcovector&, const _dcovector&)"
83 std::cerr <<
"[ERROR] operator+(const dcovector&, const _dcovector&)"
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 dcovector&, const _dcovector&)"
109 std::cerr <<
"[ERROR] operator-(const dcovector&, const _dcovector&)"
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 dcovector&, const _dcovector&)"
136 std::cerr <<
"[ERROR] operator%(const dcovector&, const _dcovector&)"
138 <<
"These two vectors can not make a dot product." << std::endl
139 <<
"Your input was (" << vecA.L <<
") % (" << vecB.
L <<
")."
145 double val( ddot_( vecA.L, vecA.Array, 1, vecB.
Array, 1 ) );
dcovector & operator=(const dcovector &)
Definition: dcovector-dcovector.hpp:3
dcovector & operator+=(const dcovector &)
Definition: dcovector-dcovector.hpp:22
double * Array
1D Array to store vector data
Definition: _dcovector.hpp:8
long L
vector size
Definition: _dcovector.hpp:7
void destroy() const
Definition: _dcovector-misc.hpp:3
Real Double-precision Column Vector Class.
Definition: dcovector.hpp:3
(DO NOT USE) Smart-temporary Real Double-precision Column Vector Class
Definition: _dcovector.hpp:3
void shallow_copy(const _dcovector &)
Definition: dcovector-misc.hpp:73
dcovector & operator-=(const dcovector &)
Definition: dcovector-dcovector.hpp:46