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

Go to the source code of this file.

Functions

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

Function Documentation

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

double*drovector operator

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

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

4 {CPPL_VERBOSE_REPORT;
5  drovector newvec(vec.l);
6 
7  for(CPPL_INT i=0; i<vec.l; i++){
8  newvec.array[i] =d*vec.array[i];
9  }
10 
11  return _(newvec);
12 }
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)