CPPLapack
 All Classes Files Functions Variables Friends Pages
complex-zgbmatrix.hpp
Go to the documentation of this file.
1 //=============================================================================
2 /*! comple*zgbmatrix operator */
3 inline _zgbmatrix operator*(const comple& d, const zgbmatrix& mat)
4 {CPPL_VERBOSE_REPORT;
5  zgbmatrix newmat(mat.m, mat.n, mat.kl, mat.ku);
6 
7  const CPPL_INT size =(newmat.kl+newmat.ku+1)*newmat.n;
8  for(CPPL_INT i=0; i<size; i++){
9  newmat.array[i] =d*mat.array[i];
10  }
11 
12  return _(newmat);
13 }
_dgematrix i(const _dgbmatrix &mat)
_zgbmatrix operator*(const comple &d, const zgbmatrix &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
(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