VERB_code_2.3
drovector-dcovector.hpp
1 //=============================================================================
3 inline double operator*(const drovector& rovec, const dcovector& covec)
4 {
5 #ifdef CPPL_VERBOSE
6  std::cerr << "# [MARK] operator*(const drovector&, const dcovector&)"
7  << std::endl;
8 #endif//CPPL_VERBOSE
9 
10 #ifdef CPPL_DEBUG
11  if(rovec.L!=covec.L){
12  std::cerr << "[ERROR] operator*(const drovector&, const dcovector&)"
13  << std::endl
14  << "These two vectors can not make a product." << std::endl
15  << "Your input was (" << rovec.L << ") * (" << covec.L << ")."
16  << std::endl;
17  exit(1);
18  }
19 #endif//CPPL_DEBUG
20 
21  double val( ddot_( rovec.L, rovec.Array, 1, covec.Array, 1 ) );
22 
23  return val;
24 }
Real Double-precision Row Vector Class.
Definition: drovector.hpp:3
friend _drovector operator*(const drovector &, const dgematrix &)
Definition: drovector-dgematrix.hpp:3
Real Double-precision Column Vector Class.
Definition: dcovector.hpp:3