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

Go to the source code of this file.

Functions

_zgematrix operator* (const double &d, const zgematrix &mat)
 

Function Documentation

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

double*zgematrix operator

Definition at line 3 of file double-zgematrix.hpp.

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

4 {CPPL_VERBOSE_REPORT;
5  zgematrix newmat(mat.m, mat.n);
6 
7  const CPPL_INT size =mat.m*mat.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: 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)