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

Go to the source code of this file.

Functions

_dcovector operator* (const dcovector &vec, const double &d)
 
_dcovector operator/ (const dcovector &vec, const double &d)
 

Function Documentation

_dcovector operator* ( const dcovector vec,
const double &  d 
)
inline

dcovector*double operator

Definition at line 26 of file dcovector-double.hpp.

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

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

dcovector/double operator

Definition at line 36 of file dcovector-double.hpp.

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

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