CPPLapack
 All Classes Files Functions Variables Friends Pages
zcovector-complex.hpp
Go to the documentation of this file.
1 //=============================================================================
2 /*! zcovector*=comple operator */
3 inline zcovector& zcovector::operator*=(const comple& d)
4 {CPPL_VERBOSE_REPORT;
5  CPPL_INT inc =1;
6  zscal_(&l, &d, array, &inc);
7  return *this;
8 }
9 
10 //=============================================================================
11 /*! zcovector/=comple operator */
12 inline zcovector& zcovector::operator/=(const comple& d)
13 {CPPL_VERBOSE_REPORT;
14  comple dinv =1./d;
15  CPPL_INT inc =1;
16  zscal_(&l, &dinv, array, &inc);
17  return *this;
18 }
19 
20 ///////////////////////////////////////////////////////////////////////////////
21 ///////////////////////////////////////////////////////////////////////////////
22 ///////////////////////////////////////////////////////////////////////////////
23 
24 //=============================================================================
25 /*! zcovector*comple operator */
26 inline _zcovector operator*(const zcovector& vec, const comple& d)
27 {CPPL_VERBOSE_REPORT;
28  zcovector newvec(vec.l);
29 
30  for(CPPL_INT i=0; i<vec.l; i++){
31  newvec.array[i] =vec.array[i]*d;
32  }
33 
34  return _(newvec);
35 }
36 
37 //=============================================================================
38 /*! zcovector/comple operator */
39 inline _zcovector operator/(const zcovector& vec, const comple& d)
40 {CPPL_VERBOSE_REPORT;
41  zcovector newvec(vec.l);
42 
43  for(CPPL_INT i=0; i<vec.l; i++){
44  newvec.array[i] =vec.array[i]/d;
45  }
46 
47  return _(newvec);
48 }
comple * array
1D array to store vector data
Definition: zcovector.hpp:10
CPPL_INT l
vector size
Definition: zcovector.hpp:9
_dgematrix i(const _dgbmatrix &mat)
_zcovector operator/(const zcovector &vec, const comple &d)
zcovector & operator/=(const double &)
zcovector & operator*=(const double &)
Complex Double-precision Column Vector Class.
Definition: zcovector.hpp:3
(DO NOT USE) Smart-temporary Complex Double-precision Column Vector Class
Definition: _zcovector.hpp:3
_dcovector _(dcovector &vec)
_zcovector operator*(const zcovector &vec, const comple &d)