CPPLapack
 All Classes Files Functions Variables Friends
drovector-dsymatrix.hpp
Go to the documentation of this file.
00001 //=============================================================================
00002 /*! drovector*dsymatrix operator */
00003 inline _drovector operator*(const drovector& vec, const dsymatrix& mat)
00004 {VERBOSE_REPORT;
00005 #ifdef  CPPL_DEBUG
00006   if(vec.l!=mat.n){
00007     ERROR_REPORT;
00008     std::cerr << "These vector and matrix can not make a product." << std::endl
00009               << "Your input was (" << vec.l << ") * (" << mat.n << "x" << mat.n << ")." << std::endl;
00010     exit(1);
00011   }
00012 #endif//CPPL_DEBUG
00013   
00014   drovector newvec(mat.n);
00015   dsymv_( 'l', mat.n, 1.0, mat.array, mat.n, vec.array, 1, 0.0, newvec.array, 1 );
00016   
00017   return _(newvec);
00018 }
 All Classes Files Functions Variables Friends