CPPLapack
 All Classes Files Functions Variables Friends
zcovector-complex.hpp
Go to the documentation of this file.
00001 //=============================================================================
00002 /*! zcovector*=comple operator */
00003 inline zcovector& zcovector::operator*=(const comple& d)
00004 {VERBOSE_REPORT;
00005   zscal_(l, d, array, 1);
00006   return *this;
00007 }
00008 
00009 //=============================================================================
00010 /*! zcovector/=comple operator */
00011 inline zcovector& zcovector::operator/=(const comple& d)
00012 {VERBOSE_REPORT;
00013   zscal_(l, 1./d, array, 1);
00014   return *this;
00015 }
00016 
00017 ///////////////////////////////////////////////////////////////////////////////
00018 ///////////////////////////////////////////////////////////////////////////////
00019 ///////////////////////////////////////////////////////////////////////////////
00020 
00021 //=============================================================================
00022 /*! zcovector*comple operator */
00023 inline _zcovector operator*(const zcovector& vec, const comple& d)
00024 {VERBOSE_REPORT;
00025   zcovector 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 /*! zcovector/comple operator */
00033 inline _zcovector operator/(const zcovector& vec, const comple& d)
00034 {VERBOSE_REPORT;
00035   zcovector 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