CPPLapack
 All Classes Files Functions Variables Friends
zhsmatrix-double.hpp
Go to the documentation of this file.
00001 //=============================================================================
00002 /*! zhsmatrix*=double operator */
00003 inline zhsmatrix& zhsmatrix::operator*=(const double& d)
00004 {VERBOSE_REPORT;
00005   for(std::vector<zcomponent>::iterator it=data.begin(); it!=data.end(); it++){
00006     it->v *=d;
00007   }
00008   return *this;
00009 }
00010 
00011 //=============================================================================
00012 /*! zhsmatrix/=double operator */
00013 inline zhsmatrix& zhsmatrix::operator/=(const double& d)
00014 {VERBOSE_REPORT;
00015   for(std::vector<zcomponent>::iterator it=data.begin(); it!=data.end(); it++){
00016     it->v /=d;
00017   }
00018   return *this;
00019 }
00020 
00021 ///////////////////////////////////////////////////////////////////////////////
00022 ///////////////////////////////////////////////////////////////////////////////
00023 ///////////////////////////////////////////////////////////////////////////////
00024 
00025 //=============================================================================
00026 /*! zhsmatrix*double operator */
00027 inline _zhsmatrix operator*(const zhsmatrix& mat, const double& d)
00028 {VERBOSE_REPORT;
00029   zhsmatrix newmat(mat);
00030   
00031   for(std::vector<zcomponent>::iterator it=newmat.data.begin(); it!=newmat.data.end(); it++){
00032     it->v *=d;
00033   }
00034   
00035   return _(newmat);
00036 }
00037 
00038 //=============================================================================
00039 /*! zhsmatrix/double operator */
00040 inline _zhsmatrix operator/(const zhsmatrix& mat, const double& d)
00041 {VERBOSE_REPORT;
00042   zhsmatrix newmat(mat);
00043   
00044   for(std::vector<zcomponent>::iterator it=newmat.data.begin(); it!=newmat.data.end(); it++){
00045     it->v /=d;
00046   }
00047   
00048   return _(newmat);
00049 }
 All Classes Files Functions Variables Friends