CPPLapack
 All Classes Files Functions Variables Friends Pages
_zgbmatrix-unary.hpp
Go to the documentation of this file.
1 //=============================================================================
2 /*! +_zgbmatrix operator */
3 inline const _zgbmatrix& operator+(const _zgbmatrix& mat)
4 {CPPL_VERBOSE_REPORT;
5  return mat;
6 }
7 
8 //=============================================================================
9 /*! -_zgbmatrix operator */
10 inline _zgbmatrix operator-(const _zgbmatrix& mat)
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
_zgbmatrix operator-(const _zgbmatrix &mat)
CPPL_INT kl
lower band width
Definition: _zgbmatrix.hpp:11
_dgematrix i(const _dgbmatrix &mat)
const _zgbmatrix & operator+(const _zgbmatrix &mat)
(DO NOT USE) Smart-temporary Complex Double-precision General Band Matrix Class
Definition: _zgbmatrix.hpp:3
comple * array
1D array to store matrix data
Definition: _zgbmatrix.hpp:13
CPPL_INT n
matrix column size
Definition: _zgbmatrix.hpp:10