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

Go to the source code of this file.

Functions

const zgematrixoperator+ (const zgematrix &mat)
_zgematrix operator- (const zgematrix &mat)

Function Documentation

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

+zgematrix operator

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

{VERBOSE_REPORT;
  return mat;
}
_zgematrix operator- ( const zgematrix mat) [inline]

-zgematrix operator

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

References _(), zgematrix::array, i(), zgematrix::m, and zgematrix::n.

{VERBOSE_REPORT;
  zgematrix newmat(mat.m,mat.n);
  for(long i=0; i<newmat.m*newmat.n; i++){ newmat.array[i]=-mat.array[i]; }
  
  return _(newmat);
}
 All Classes Files Functions Variables Friends