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, zgbmatrix::m, and zgbmatrix::n.

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 }
_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
CPPL_INT m
matrix row size
Definition: zgbmatrix.hpp:9
Complex Double-precision General Band Matrix Class.
Definition: zgbmatrix.hpp:3
CPPL_INT n
matrix column size
Definition: _dgematrix.hpp:10
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