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 26 of file drovector-double.hpp.

References _(), drovector::array, i(), and drovector::l.

27 {CPPL_VERBOSE_REPORT;
28  drovector newvec(vec.l);
29  for(CPPL_INT i=0; i<vec.l; i++){
30  newvec.array[i] =vec.array[i]*d;
31  }
32 
33  return _(newvec);
34 }
double * array
1D array to store vector data
Definition: drovector.hpp:11
_dgematrix i(const _dgbmatrix &mat)
CPPL_INT l
vector size
Definition: drovector.hpp:9
Real Double-precision Row Vector Class.
Definition: drovector.hpp:3
_dcovector _(dcovector &vec)
_drovector operator/ ( const drovector vec,
const double &  d 
)
inline

drovector/double operator

Definition at line 38 of file drovector-double.hpp.

References _(), drovector::array, i(), and drovector::l.

39 {CPPL_VERBOSE_REPORT;
40  drovector newvec(vec.l);
41  for(CPPL_INT i=0; i<vec.l; i++){
42  newvec.array[i] =vec.array[i]/d;
43  }
44 
45  return _(newvec);
46 }
double * array
1D array to store vector data
Definition: drovector.hpp:11
_dgematrix i(const _dgbmatrix &mat)
CPPL_INT l
vector size
Definition: drovector.hpp:9
Real Double-precision Row Vector Class.
Definition: drovector.hpp:3
_dcovector _(dcovector &vec)