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

Go to the source code of this file.

Functions

_dgbmatrix operator* (const double &d, const dgbmatrix &mat)

Function Documentation

_dgbmatrix operator* ( const double &  d,
const dgbmatrix mat 
) [inline]

double*dgbmatrix operator

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

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

{VERBOSE_REPORT;
  dgbmatrix 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