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

Go to the source code of this file.

Functions

_dgsmatrix operator* (const dgsmatrix &mat, const double &d)
_dgsmatrix operator/ (const dgsmatrix &mat, const double &d)

Function Documentation

_dgsmatrix operator* ( const dgsmatrix mat,
const double &  d 
) [inline]

dgsmatrix*double operator

Definition at line 27 of file dgsmatrix-double.hpp.

References _(), and dgsmatrix::data.

{VERBOSE_REPORT;
  dgsmatrix newmat(mat);
  for(std::vector<dcomponent>::iterator it=newmat.data.begin(); it!=mat.data.end(); it++){
    it->v *=d;
  }
  return _(newmat);
}
_dgsmatrix operator/ ( const dgsmatrix mat,
const double &  d 
) [inline]

dgsmatrix/double operator

Definition at line 38 of file dgsmatrix-double.hpp.

References _(), and dgsmatrix::data.

{VERBOSE_REPORT;
  dgsmatrix newmat(mat);
  for(std::vector<dcomponent>::iterator it=newmat.data.begin(); it!=mat.data.end(); it++){
    it->v /=d;
  }
  return _(newmat);
}
 All Classes Files Functions Variables Friends