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]

-_zhematrix operator

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

References _zhematrix::array, i(), and _zhematrix::n.

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