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 3 of file _dgsmatrix-double.hpp.

References _dgsmatrix::data.

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

_dgsmatrix/double operator

Definition at line 13 of file _dgsmatrix-double.hpp.

References _dgsmatrix::data.

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