CPPLapack
 All Classes Files Functions Variables Friends Pages
drovector-_dcovector.hpp
Go to the documentation of this file.
1 //=============================================================================
2 /*! drovector*_dcovector operator */
3 inline double operator*(const drovector& rovec, const _dcovector& covec)
4 {CPPL_VERBOSE_REPORT;
5 #ifdef CPPL_DEBUG
6  if(rovec.l!=covec.l){
7  ERROR_REPORT;
8  std::cerr << "These two vectors can not make a product." << std::endl
9  << "Your input was (" << rovec.l << ") * (" << covec.l << ")." << std::endl;
10  exit(1);
11  }
12 #endif//CPPL_DEBUG
13 
14  CPPL_INT inc =1;
15  double val =ddot_( &rovec.l, rovec.array, &inc, covec.array, &inc );
16 
17  covec.destroy();
18  return val;
19 }
double * array
1D array to store vector data
Definition: drovector.hpp:11
CPPL_INT l
vector size
Definition: _dcovector.hpp:9
CPPL_INT l
vector size
Definition: drovector.hpp:9
double operator*(const drovector &rovec, const _dcovector &covec)
Real Double-precision Row Vector Class.
Definition: drovector.hpp:3
void destroy() const
(DO NOT USE) Smart-temporary Real Double-precision Column Vector Class
Definition: _dcovector.hpp:3
double * array
1D array to store vector data
Definition: _dcovector.hpp:11