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;
  for(long i=0; i<mat.m*mat.n; i++){ mat.array[i]=-mat.array[i]; }
  return mat;
}
 All Classes Files Functions Variables Friends