CPPLapack
 All Classes Files Functions Variables Friends
Functions
zrovector-zgbmatrix.hpp File Reference

Go to the source code of this file.

Functions

_zrovector operator* (const zrovector &vec, const zgbmatrix &mat)

Function Documentation

_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::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 );
  
  return _(newvec);
}
 All Classes Files Functions Variables Friends