CPPLapack
 All Classes Files Functions Variables Friends Pages
dgrmatrix-_dcovector.hpp
Go to the documentation of this file.
1 //=============================================================================
2 /*! dgrmatrix*_dcovector operator */
3 inline _dcovector operator*(const dgrmatrix& mat, const _dcovector& vec)
4 {CPPL_VERBOSE_REPORT;
5 #ifdef CPPL_DEBUG
6  if(mat.n!=vec.l){
7  ERROR_REPORT;
8  std::cerr << "These matrix and vector can not make a product." << std::endl
9  << "Your input was (" << mat.m << "x" << mat.n << ") * (" << vec.l << ")." << std::endl;
10  exit(1);
11  }
12 #endif//CPPL_DEBUG
13 
14  dcovector VEC =vec;
15  dcovector newvec =mat*VEC;
16  return _(newvec);
17 }
CPPL_INT l
vector size
Definition: _dcovector.hpp:9
CPPL_INT n
matrix column size
Definition: dgrmatrix.hpp:10
_dcovector operator*(const dgrmatrix &mat, const _dcovector &vec)
Real Double-precision Column Vector Class.
Definition: dcovector.hpp:3
CPPL_INT m
matrix row size
Definition: dgrmatrix.hpp:9
(DO NOT USE) Smart-temporary Real Double-precision Column Vector Class
Definition: _dcovector.hpp:3
_dcovector _(dcovector &vec)
Real Double-precision General Compressed Sparse Row (CSR) Matrix Class.
Definition: dgrmatrix.hpp:3