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

Go to the source code of this file.

Functions

_zhsmatrix operator* (const zhsmatrix &mat, const double &d)
_zhsmatrix operator/ (const zhsmatrix &mat, const double &d)

Function Documentation

_zhsmatrix operator* ( const zhsmatrix mat,
const double &  d 
) [inline]

zhsmatrix*double operator

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

References _(), and zhsmatrix::data.

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

zhsmatrix/double operator

Definition at line 40 of file zhsmatrix-double.hpp.

References _(), and zhsmatrix::data.

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