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