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

Go to the source code of this file.

Functions

_dssmatrix operator* (const dssmatrix &mat, const double &d)
_dssmatrix operator/ (const dssmatrix &mat, const double &d)

Function Documentation

_dssmatrix operator* ( const dssmatrix mat,
const double &  d 
) [inline]

dssmatrix*double operator

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

References _(), and dssmatrix::data.

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

dssmatrix/double operator

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

References _(), and dssmatrix::data.

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