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

Go to the source code of this file.

Functions

const _dgbmatrixoperator+ (const _dgbmatrix &mat)
_dgbmatrix operator- (const _dgbmatrix &mat)

Function Documentation

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

+_dgbmatrix operator

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

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

-_dgbmatrix operator

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

References _dgbmatrix::array, i(), _dgbmatrix::kl, _dgbmatrix::ku, and _dgbmatrix::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