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

Go to the source code of this file.

Functions

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

Function Documentation

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

zgsmatrix*comple operator

Definition at line 27 of file zgsmatrix-complex.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 comple &  d 
) [inline]

zgsmatrix/comple operator

Definition at line 38 of file zgsmatrix-complex.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