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  zgbmatrix newmat(mat.m,mat.n,mat.kl,mat.ku);
13  for(CPPL_INT i=0; i<(newmat.kl+newmat.ku+1)*newmat.n; i++){
14  newmat.array[i]=-mat.array[i];
15  }
16 
17  return _(newmat);
18 }
const zgbmatrix & operator+(const zgbmatrix &mat)
_dgematrix i(const _dgbmatrix &mat)
CPPL_INT n
matrix column size
Definition: zgbmatrix.hpp:10
CPPL_INT ku
upper band width
Definition: zgbmatrix.hpp:12
_zgbmatrix operator-(const zgbmatrix &mat)
CPPL_INT m
matrix row size
Definition: zgbmatrix.hpp:9
Complex Double-precision General Band Matrix Class.
Definition: zgbmatrix.hpp:3
(DO NOT USE) Smart-temporary Complex Double-precision General Band Matrix Class
Definition: _zgbmatrix.hpp:3
CPPL_INT kl
lower band width
Definition: zgbmatrix.hpp:11
_dcovector _(dcovector &vec)
comple * array
1D array to store matrix data
Definition: zgbmatrix.hpp:13