CPPLapack
 All Classes Files Functions Variables Friends Pages
Functions
complex-zgbmatrix.hpp File Reference

Go to the source code of this file.

Functions

_zgbmatrix operator* (const comple &d, const zgbmatrix &mat)
 

Function Documentation

_zgbmatrix operator* ( const comple &  d,
const zgbmatrix mat 
)
inline

comple*zgbmatrix operator

Definition at line 3 of file complex-zgbmatrix.hpp.

References _(), zgbmatrix::array, i(), zgbmatrix::kl, zgbmatrix::ku, zgbmatrix::m, and zgbmatrix::n.

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)
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 kl
lower band width
Definition: zgbmatrix.hpp:11
_dcovector _(dcovector &vec)
comple * array
1D array to store matrix data
Definition: zgbmatrix.hpp:13