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, _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(); return _(newvec); }