Go to the source code of this file.
drovector+drovector operator
Definition at line 57 of file drovector-drovector.hpp.
References _(), drovector::array, i(), and drovector::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++){
double * array
1D array to store vector data
_dgematrix i(const _dgbmatrix &mat)
Real Double-precision Row Vector Class.
_dcovector _(dcovector &vec)
drovector-drovector operator
Definition at line 79 of file drovector-drovector.hpp.
References _(), drovector::array, i(), and drovector::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++){
double * array
1D array to store vector data
_dgematrix i(const _dgbmatrix &mat)
Real Double-precision Row Vector Class.
_dcovector _(dcovector &vec)
drovector^T*drovector operator (inner product)
Definition at line 100 of file drovector-drovector.hpp.
References drovector::array, and drovector::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;
112 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 123 of file drovector-drovector.hpp.
References _(), i(), and drovector::l.
124 {CPPL_VERBOSE_REPORT;
126 if( vecA.
l!=vecB.
l ){
128 std::cerr <<
"These two vectors can not make Hadamerd product." << std::endl
129 <<
"Your input was (" << vecA.
l <<
") and (" << vecB.
l <<
")." << std::endl;
135 for(CPPL_INT
i=0;
i<newvec.l;
i++){
136 newvec(
i) =vecA(
i)*vecB(
i);
_dgematrix i(const _dgbmatrix &mat)
Real Double-precision Row Vector Class.
_dcovector _(dcovector &vec)