CPPLapack
 All Classes Files Functions Variables Friends Pages
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.

4 {CPPL_VERBOSE_REPORT;
5  return mat;
6 }
_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.

11 {CPPL_VERBOSE_REPORT;
12  for(CPPL_INT i=0; i<(mat.kl+mat.ku+1)*mat.n; i++){
13  mat.array[i] =-mat.array[i];
14  }
15  return mat;
16 }
CPPL_INT ku
upper band width
Definition: _zgbmatrix.hpp:12
CPPL_INT kl
lower band width
Definition: _zgbmatrix.hpp:11
_dgematrix i(const _dgbmatrix &mat)
comple * array
1D array to store matrix data
Definition: _zgbmatrix.hpp:13
CPPL_INT n
matrix column size
Definition: _zgbmatrix.hpp:10