CPPLapack
 All Classes Files Functions Variables Friends
drovector-double.hpp
Go to the documentation of this file.
00001 //=============================================================================
00002 /*! drovector*=double operator */
00003 inline drovector& drovector::operator*=(const double& d)
00004 {VERBOSE_REPORT;
00005   dscal_(l, d, array, 1);
00006   return *this;
00007 }
00008 
00009 //=============================================================================
00010 /*! drovector/=double operator */
00011 inline drovector& drovector::operator/=(const double& d)
00012 {VERBOSE_REPORT;
00013   dscal_(l, 1./d, array, 1);
00014   return *this;
00015 }
00016 
00017 ///////////////////////////////////////////////////////////////////////////////
00018 ///////////////////////////////////////////////////////////////////////////////
00019 ///////////////////////////////////////////////////////////////////////////////
00020 
00021 //=============================================================================
00022 /*! drovector*double operator */
00023 inline _drovector operator*(const drovector& vec, const double& d)
00024 {VERBOSE_REPORT;
00025   drovector newvec(vec.l);
00026   for(long i=0; i<vec.l; i++){ newvec.array[i] =vec.array[i]*d; }
00027   
00028   return _(newvec);
00029 }
00030 
00031 //=============================================================================
00032 /*! drovector/double operator */
00033 inline _drovector operator/(const drovector& vec, const double& d)
00034 {VERBOSE_REPORT;
00035   drovector newvec(vec.l);
00036   for(long i=0; i<vec.l; i++){ newvec.array[i] =vec.array[i]/d; }
00037   
00038   return _(newvec);
00039 }
 All Classes Files Functions Variables Friends