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

Go to the source code of this file.

Functions

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

Function Documentation

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

zhematrix*comple operator

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

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

4 {CPPL_VERBOSE_REPORT;
5  mat.complete();
6  zgematrix newmat(mat.n, mat.n);
7 
8  const CPPL_INT size =mat.n*mat.n;
9  for(CPPL_INT i=0; i<size; i++){
10  newmat.array[i] =mat.array[i]*d;
11  }
12 
13  return _(newmat);
14 }
_dgematrix i(const _dgbmatrix &mat)
void complete() const
Complex Double-precision General Dence Matrix Class.
Definition: zgematrix.hpp:3
CPPL_INT n
matrix column size
Definition: zhematrix.hpp:11
comple * array
1D array to store matrix data
Definition: zhematrix.hpp:12
_dcovector _(dcovector &vec)
_zgematrix operator/ ( const zhematrix mat,
const comple &  d 
)
inline

zhematrix/comple operator

Definition at line 18 of file zhematrix-complex.hpp.

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

19 {CPPL_VERBOSE_REPORT;
20  mat.complete();
21  zgematrix newmat(mat.n, mat.n);
22 
23  const CPPL_INT size =mat.n*mat.n;
24  for(CPPL_INT i=0; i<size; i++){
25  newmat.array[i] =mat.array[i]/d;
26  }
27 
28  return _(newmat);
29 }
_dgematrix i(const _dgbmatrix &mat)
void complete() const
Complex Double-precision General Dence Matrix Class.
Definition: zgematrix.hpp:3
CPPL_INT n
matrix column size
Definition: zhematrix.hpp:11
comple * array
1D array to store matrix data
Definition: zhematrix.hpp:12
_dcovector _(dcovector &vec)