My Project
double-dgematrix.hpp
1 //=============================================================================
3 inline _dgematrix operator*(const double& d, const dgematrix& mat)
4 {
5 #ifdef CPPL_VERBOSE
6  std::cerr << "# [MARK] operator*(const double&, const dgematrix&)"
7  << std::endl;
8 #endif//CPPL_VERBOSE
9 
10  dgematrix newmat(mat.M, mat.N);
11  for(long i=0; i<mat.M*mat.N; i++){ newmat.Array[i] =d*mat.Array[i]; }
12  return _(newmat);
13 }
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
friend _drovector operator*(const drovector &, const dgematrix &)
Definition: drovector-dgematrix.hpp:3