Go to the source code of this file.
dcovector+dcovector operator
Definition at line 57 of file dcovector-dcovector.hpp.
References _(), dcovector::array, i(), and dcovector::l.
62 std::cerr <<
"These two vectors can not make a sumation." << std::endl
63 <<
"Your input was (" << vecA.
l <<
") + (" << vecB.
l <<
")." << std::endl;
70 for(CPPL_INT
i=0;
i<newvec.l;
i++){
_dgematrix i(const _dgbmatrix &mat)
double * array
1D array to store vector data
Real Double-precision Column Vector Class.
_dcovector _(dcovector &vec)
dcovector-dcovector operator
Definition at line 79 of file dcovector-dcovector.hpp.
References _(), dcovector::array, i(), and dcovector::l.
84 std::cerr <<
"These two vectors can not make a subtraction." << std::endl
85 <<
"Your input was (" << vecA.
l <<
") - (" << vecB.
l <<
")." << std::endl;
91 for(CPPL_INT
i=0;
i<newvec.l;
i++){
_dgematrix i(const _dgbmatrix &mat)
double * array
1D array to store vector data
Real Double-precision Column Vector Class.
_dcovector _(dcovector &vec)
dcovector^T*dcovector operator (inner product)
Definition at line 100 of file dcovector-dcovector.hpp.
References dcovector::array, and dcovector::l.
101 {CPPL_VERBOSE_REPORT;
105 std::cerr <<
"These two vectors can not make a dot product." << std::endl
106 <<
"Your input was (" << vecA.
l <<
") % (" << vecB.
l <<
")." << std::endl;
113 double val( ddot_( &vecA.
l, vecA.
array, &inc, vecB.
array, &inc ) );
double * array
1D array to store vector data
return Hadamerd product
Definition at line 124 of file dcovector-dcovector.hpp.
References _(), i(), and dcovector::l.
125 {CPPL_VERBOSE_REPORT;
127 if( vecA.
l!=vecB.
l ){
129 std::cerr <<
"These two vectors can not make Hadamerd product." << std::endl
130 <<
"Your input was (" << vecA.
l <<
") and (" << vecB.
l <<
")." << std::endl;
136 for(CPPL_INT
i=0;
i<newvec.l;
i++){
137 newvec(
i) =vecA(
i)*vecB(
i);
_dgematrix i(const _dgbmatrix &mat)
Real Double-precision Column Vector Class.
_dcovector _(dcovector &vec)