00001 //============================================================================= 00003 inline _dgematrix operator*(const double& d, const dgematrix& mat) 00004 { 00005 #ifdef CPPL_VERBOSE 00006 std::cerr << "# [MARK] operator*(const double&, const dgematrix&)" 00007 << std::endl; 00008 #endif//CPPL_VERBOSE 00009 00010 dgematrix newmat(mat.M, mat.N); 00011 for(long i=0; i<mat.M*mat.N; i++){ newmat.Array[i] =d*mat.Array[i]; } 00012 return _(newmat); 00013 }