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, zgbmatrix::m, and zgbmatrix::n.

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