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