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

Go to the source code of this file.

Functions

_zgematrix operator* (const zgematrix &mat, const comple &d)
 
_zgematrix operator/ (const zgematrix &mat, const comple &d)
 

Function Documentation

_zgematrix operator* ( const zgematrix mat,
const comple &  d 
)
inline

zgematrix*comple operator

Definition at line 28 of file zgematrix-complex.hpp.

References _(), zgematrix::array, i(), zgematrix::m, and zgematrix::n.

29 {CPPL_VERBOSE_REPORT;
30  zgematrix newmat(mat.m, mat.n);
31 
32  const CPPL_INT size =mat.m*mat.n;
33  for(CPPL_INT i=0; i<size; i++){
34  newmat.array[i] =mat.array[i]*d;
35  }
36 
37  return _(newmat);
38 }
_dgematrix i(const _dgbmatrix &mat)
CPPL_INT n
matrix column size
Definition: zgematrix.hpp:10
Complex Double-precision General Dence Matrix Class.
Definition: zgematrix.hpp:3
comple * array
1D array to store matrix data
Definition: zgematrix.hpp:11
CPPL_INT m
matrix row size
Definition: zgematrix.hpp:9
_dcovector _(dcovector &vec)
_zgematrix operator/ ( const zgematrix mat,
const comple &  d 
)
inline

zgematrix/comple operator

Definition at line 42 of file zgematrix-complex.hpp.

References _(), zgematrix::array, i(), zgematrix::m, and zgematrix::n.

43 {CPPL_VERBOSE_REPORT;
44  zgematrix newmat(mat.m, mat.n);
45 
46  const CPPL_INT size =mat.m*mat.n;
47  for(CPPL_INT i=0; i<size; i++){
48  newmat.array[i] =mat.array[i]/d;
49  }
50 
51  return _(newmat);
52 }
_dgematrix i(const _dgbmatrix &mat)
CPPL_INT n
matrix column size
Definition: zgematrix.hpp:10
Complex Double-precision General Dence Matrix Class.
Definition: zgematrix.hpp:3
comple * array
1D array to store matrix data
Definition: zgematrix.hpp:11
CPPL_INT m
matrix row size
Definition: zgematrix.hpp:9
_dcovector _(dcovector &vec)