Go to the source code of this file.
Functions | |
_zcovector | operator+ (const zcovector &vecA, const zcovector &vecB) |
_zcovector | operator- (const zcovector &vecA, const zcovector &vecB) |
comple | operator% (const zcovector &vecA, const zcovector &vecB) |
_zcovector operator+ | ( | const zcovector & | vecA, |
const zcovector & | vecB | ||
) | [inline] |
zcovector+zcovector operator
Definition at line 57 of file zcovector-zcovector.hpp.
References _(), zcovector::array, i(), and zcovector::l.
{VERBOSE_REPORT; #ifdef CPPL_DEBUG if(vecA.l!=vecB.l){ ERROR_REPORT; std::cerr << "These two vectors can not make a sumation." << std::endl << "Your input was (" << vecA.l << ") + (" << vecB.l << ")." << std::endl; exit(1); } #endif//CPPL_DEBUG zcovector newvec(vecA.l); for(long i=0; i<newvec.l; i++){ newvec.array[i] =vecA.array[i]+vecB.array[i]; } return _(newvec); }
_zcovector operator- | ( | const zcovector & | vecA, |
const zcovector & | vecB | ||
) | [inline] |
zcovector-zcovector operator
Definition at line 79 of file zcovector-zcovector.hpp.
References _(), zcovector::array, i(), and zcovector::l.
{VERBOSE_REPORT; #ifdef CPPL_DEBUG if(vecA.l!=vecB.l){ ERROR_REPORT; std::cerr << "These two vectors can not make a subtraction." << std::endl << "Your input was (" << vecA.l << ") - (" << vecB.l << ")." << std::endl; exit(1); } #endif//CPPL_DEBUG zcovector newvec(vecA.l); for(long i=0; i<newvec.l; i++){ newvec.array[i] =vecA.array[i]-vecB.array[i]; } return _(newvec); }
zcovector^T*zcovector operator (inner product)
Definition at line 100 of file zcovector-zcovector.hpp.
References zcovector::array, and zcovector::l.
{VERBOSE_REPORT; #ifdef CPPL_DEBUG if(vecA.l!=vecB.l){ ERROR_REPORT; std::cerr << "These two vectors can not make a dot product." << std::endl << "Your input was (" << vecA.l << ") % (" << vecB.l << ")." << std::endl; exit(1); } #endif//CPPL_DEBUG comple val( zdotu_( vecA.l, vecA.array, 1, vecB.array, 1 ) ); return val; }