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, _zgbmatrix::array, _zgbmatrix::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 ); mat.destroy(); return _(newvec); }