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

Go to the source code of this file.

Functions

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

Function Documentation

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

_zrovector*double operator

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

References _zrovector::array, and _zrovector::l.

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

_zrovector/double operator

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

References _zrovector::array, and _zrovector::l.

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