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

Go to the source code of this file.

Functions

const _zgbmatrixoperator+ (const _zgbmatrix &mat)
_zgbmatrix operator- (const _zgbmatrix &mat)

Function Documentation

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

+_zgbmatrix operator

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

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

-_zgbmatrix operator

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

References _zgbmatrix::array, i(), _zgbmatrix::kl, _zgbmatrix::ku, and _zgbmatrix::n.

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