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

Go to the source code of this file.

Functions

const zhsmatrixoperator+ (const zhsmatrix &mat)
_zhsmatrix operator- (const zhsmatrix &mat)

Function Documentation

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

+zhsmatrix operator

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

{VERBOSE_REPORT;
  return mat;
}
_zhsmatrix operator- ( const zhsmatrix mat) [inline]

-zhsmatrix operator

Definition at line 10 of file zhsmatrix-unary.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 =-it->v;
  }
  return _(newmat);
}
 All Classes Files Functions Variables Friends