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

Go to the source code of this file.

Functions

_zgbmatrix operator* (const double &d, const zgbmatrix &mat)

Function Documentation

_zgbmatrix operator* ( const double &  d,
const zgbmatrix mat 
) [inline]

double*zgbmatrix operator

Definition at line 3 of file double-zgbmatrix.hpp.

References _(), zgbmatrix::array, i(), zgbmatrix::kl, zgbmatrix::ku, zgbmatrix::m, and zgbmatrix::n.

{VERBOSE_REPORT;
  zgbmatrix newmat(mat.m, mat.n, mat.kl, mat.ku);
  for(long i=0; i<(newmat.kl+newmat.ku+1)*newmat.n; i++){
    newmat.array[i] =d*mat.array[i];
  }  
  return _(newmat);
}
 All Classes Files Functions Variables Friends