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

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

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)
CPPL_INT kl
lower band width
Definition: _dgbmatrix.hpp:11
CPPL_INT n
matrix column size
Definition: _dgbmatrix.hpp:10
double * array
1D array to store matrix data
Definition: _dgbmatrix.hpp:13