CPPLapack
 All Classes Files Functions Variables Friends
_dssmatrix-double.hpp
Go to the documentation of this file.
00001 //=============================================================================
00002 /*! _dssmatrix*double operator */
00003 inline _dssmatrix operator*(const _dssmatrix& mat, const double& d)
00004 {VERBOSE_REPORT;
00005   for(std::vector<dcomponent>::iterator it=mat.data.begin(); it!=mat.data.end(); it++){
00006     it->v *=d;
00007   }
00008   
00009   return mat;
00010 }
00011 
00012 //=============================================================================
00013 /*! _dssmatrix/double operator */
00014 inline _dssmatrix operator/(const _dssmatrix& mat, const double& d)
00015 {VERBOSE_REPORT;
00016   for(std::vector<dcomponent>::iterator it=mat.data.begin(); it!=mat.data.end(); it++){
00017     it->v /=d;
00018   }
00019   
00020   return mat;
00021 }
 All Classes Files Functions Variables Friends