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

Go to the source code of this file.

Functions

_dcovector operator* (const dgrmatrix &mat, const _dcovector &vec)
 

Function Documentation

_dcovector operator* ( const dgrmatrix mat,
const _dcovector vec 
)
inline

dgrmatrix*_dcovector operator

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

References _(), _dcovector::l, dgrmatrix::m, and dgrmatrix::n.

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
Real Double-precision Column Vector Class.
Definition: dcovector.hpp:3
CPPL_INT m
matrix row size
Definition: dgrmatrix.hpp:9
_dcovector _(dcovector &vec)