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

Go to the source code of this file.

Functions

const zhematrixoperator+ (const zhematrix &mat)
_zhematrix operator- (const zhematrix &mat)

Function Documentation

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

+zhematrix operator

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

{VERBOSE_REPORT;
  return mat;
}
_zhematrix operator- ( const zhematrix mat) [inline]

-zgematrix operator

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

References _(), i(), and zhematrix::n.

{VERBOSE_REPORT;
  zhematrix newmat(mat.n);
  for(long i=0; i<mat.n; i++){ for(long j=0; j<=i; j++){
    newmat(i,j) =-mat(i,j);
  }}
  
  return _(newmat);
}
 All Classes Files Functions Variables Friends