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

Go to the source code of this file.

Functions

const zgsmatrixoperator+ (const zgsmatrix &mat)
_zgsmatrix operator- (const zgsmatrix &mat)

Function Documentation

const zgsmatrix& operator+ ( const zgsmatrix mat) [inline]

+zgsmatrix operator

Definition at line 3 of file zgsmatrix-unary.hpp.

{VERBOSE_REPORT;
  return mat;
}
_zgsmatrix operator- ( const zgsmatrix mat) [inline]

-zgsmatrix operator

Definition at line 10 of file zgsmatrix-unary.hpp.

References _(), and zgsmatrix::data.

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