CPPLapack
 All Classes Files Functions Variables Friends Pages
_dcovector-double.hpp
Go to the documentation of this file.
1 //=============================================================================
2 /*! _dcovector*double operator */
3 inline _dcovector operator*(const _dcovector& vec, const double& d)
4 {CPPL_VERBOSE_REPORT;
5  CPPL_INT inc =1;
6  dscal_(&vec.l, &d, vec.array, &inc);
7  return vec;
8 }
9 
10 //=============================================================================
11 /*! _dcovector/double operator */
12 inline _dcovector operator/(const _dcovector& vec, const double& d)
13 {CPPL_VERBOSE_REPORT;
14  CPPL_INT inc =1;
15  double dinv =1./d;
16  dscal_(&vec.l, &dinv, vec.array, &inc);
17  return vec;
18 }
CPPL_INT l
vector size
Definition: _dcovector.hpp:9
_dcovector operator/(const _dcovector &vec, const double &d)
_dcovector operator*(const _dcovector &vec, const double &d)
(DO NOT USE) Smart-temporary Real Double-precision Column Vector Class
Definition: _dcovector.hpp:3
double * array
1D array to store vector data
Definition: _dcovector.hpp:11