CPPLapack
 All Classes Files Functions Variables Friends Pages
Functions
_drovector-double.hpp File Reference

Go to the source code of this file.

Functions

_drovector operator* (const _drovector &vec, const double &d)
 
_drovector operator/ (const _drovector &vec, const double &d)
 

Function Documentation

_drovector operator* ( const _drovector vec,
const double &  d 
)
inline

_drovector*double operator

Definition at line 3 of file _drovector-double.hpp.

References _drovector::array, and _drovector::l.

4 {CPPL_VERBOSE_REPORT;
5  CPPL_INT inc =1;
6  dscal_(&vec.l, &d, vec.array, &inc);
7  return vec;
8 }
double * array
1D array to store vector data
Definition: _drovector.hpp:11
CPPL_INT l
vector size
Definition: _drovector.hpp:9
_drovector operator/ ( const _drovector vec,
const double &  d 
)
inline

_drovector/double operator

Definition at line 12 of file _drovector-double.hpp.

References _drovector::array, and _drovector::l.

13 {CPPL_VERBOSE_REPORT;
14  double dinv =1./d;
15  CPPL_INT inc =1;
16  dscal_(&vec.l, &dinv, vec.array, &inc);
17  return vec;
18 }
double * array
1D array to store vector data
Definition: _drovector.hpp:11
CPPL_INT l
vector size
Definition: _drovector.hpp:9