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

Go to the source code of this file.

Functions

double operator* (const drovector &rovec, const _dcovector &covec)

Function Documentation

double operator* ( const drovector rovec,
const _dcovector covec 
) [inline]

drovector*_dcovector operator

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

References drovector::array, _dcovector::array, _dcovector::destroy(), drovector::l, and _dcovector::l.

{VERBOSE_REPORT;
#ifdef  CPPL_DEBUG
  if(rovec.l!=covec.l){
    ERROR_REPORT;
    std::cerr << "These two vectors can not make a product." << std::endl
              << "Your input was (" << rovec.l << ") * (" << covec.l << ")." << std::endl;
    exit(1);
  }
#endif//CPPL_DEBUG
  
  double val( ddot_( rovec.l, rovec.array, 1, covec.array, 1 ) );
  
  covec.destroy();
  return val;
}
 All Classes Files Functions Variables Friends