CPPLapack
 All Classes Files Functions Variables Friends
_drovector-_dcovector.hpp
Go to the documentation of this file.
00001 //=============================================================================
00002 /*! _drovector*_dcovector operator */
00003 inline double operator*(const _drovector& rovec, const _dcovector& covec)
00004 {VERBOSE_REPORT;
00005 #ifdef  CPPL_DEBUG
00006   if(rovec.l!=covec.l){
00007     ERROR_REPORT;
00008     std::cerr << "These two vectors can not make a product." << std::endl
00009               << "Your input was (" << rovec.l << ") * (" << covec.l << ")." << std::endl;
00010     exit(1);
00011   }
00012 #endif//CPPL_DEBUG
00013   
00014   double val( ddot_( rovec.l, rovec.array, 1, covec.array, 1 ) );
00015   
00016   rovec.destroy();
00017   covec.destroy();
00018   return val;
00019 }
 All Classes Files Functions Variables Friends