CPPLapack
 All Classes Files Functions Variables Friends Pages
double-dgematrix.hpp
Go to the documentation of this file.
1 //=============================================================================
2 /*! double*dgematrix operator */
3 inline _dgematrix operator*(const double& d, const dgematrix& mat)
4 {CPPL_VERBOSE_REPORT;
5  dgematrix 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 operator*(const double &d, const dgematrix &mat)
CPPL_INT m
matrix row size
Definition: dgematrix.hpp:9
double * array
1D array to store matrix data
Definition: dgematrix.hpp:11
_dgematrix i(const _dgbmatrix &mat)
CPPL_INT n
matrix column size
Definition: dgematrix.hpp:10
Real Double-precision General Dence Matrix Class.
Definition: dgematrix.hpp:3
(DO NOT USE) Smart-temporary Real Double-precision General Dence Matrix Class
Definition: _dgematrix.hpp:3
_dcovector _(dcovector &vec)