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

Go to the source code of this file.

Functions

_zgsmatrix operator* (const zgsmatrix &mat, const double &d)
_zgsmatrix operator/ (const zgsmatrix &mat, const double &d)

Function Documentation

_zgsmatrix operator* ( const zgsmatrix mat,
const double &  d 
) [inline]

zgsmatrix*double operator

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

References _(), and zgsmatrix::data.

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

zgsmatrix/double operator

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

References _(), and zgsmatrix::data.

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