CPPLapack
 All Classes Files Functions Variables Friends Pages
_zgbmatrix-complex.hpp
Go to the documentation of this file.
1 //=============================================================================
2 /*! _zgbmatrix*comple operator */
3 inline _zgbmatrix operator*(const _zgbmatrix& mat, const comple& d)
4 {CPPL_VERBOSE_REPORT;
5  CPPL_INT size =(mat.kl+mat.ku+1)*mat.n;
6  CPPL_INT inc =1;
7  zscal_(&size, &d, mat.array, &inc);
8  return mat;
9 }
10 
11 //=============================================================================
12 /*! _zgbmatrix/comple operator */
13 inline _zgbmatrix operator/(const _zgbmatrix& mat, const comple& d)
14 {CPPL_VERBOSE_REPORT;
15  CPPL_INT size =(mat.kl+mat.ku+1)*mat.n;
16  comple dinv =1./d;
17  CPPL_INT inc =1;
18  zscal_(&size, &dinv, mat.array, &inc);
19  return mat;
20 }
CPPL_INT ku
upper band width
Definition: _zgbmatrix.hpp:12
_zgbmatrix operator*(const _zgbmatrix &mat, const comple &d)
_zgbmatrix operator/(const _zgbmatrix &mat, const comple &d)
CPPL_INT kl
lower band width
Definition: _zgbmatrix.hpp:11
(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