Go to the source code of this file.
Functions | |
_zrovector | operator* (const _zrovector &vec, const _zhematrix &mat) |
_zrovector operator* | ( | const _zrovector & | vec, |
const _zhematrix & | mat | ||
) | [inline] |
_zrovector*_zhematrix operator
Definition at line 3 of file _zrovector-_zhematrix.hpp.
References _(), _zrovector::array, zrovector::array, _zhematrix::array, _zhematrix::destroy(), _zrovector::destroy(), _zrovector::l, and _zhematrix::n.
{VERBOSE_REPORT; #ifdef CPPL_DEBUG if(vec.l!=mat.n){ ERROR_REPORT; std::cerr << "These vector and matrix can not make a product." << std::endl << "Your input was (" << vec.l << ") * (" << mat.n << "x" << mat.n << ")." << std::endl; exit(1); } #endif//CPPL_DEBUG zrovector newvec(mat.n); zhemv_( 'l', mat.n, comple(1.0,0.0), mat.array, mat.n, vec.array, 1, comple(0.0,0.0), newvec.array, 1 ); vec.destroy(); mat.destroy(); return _(newvec); }