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

Go to the source code of this file.

Functions

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

Function Documentation

_dgematrix operator* ( const _dcovector covec,
const drovector rovec 
)
inline

_dcovector*drovector operator

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

References _(), _dcovector::destroy(), i(), drovector::l, _dcovector::l, dgematrix::m, and dgematrix::n.

4 {CPPL_VERBOSE_REPORT;
5  dgematrix newmat(covec.l, rovec.l);
6 
7  for(CPPL_INT i=0; i<newmat.m; i++){
8  for(CPPL_INT j=0; j<newmat.n; j++){
9  newmat(i,j) =covec(i)*rovec(j);
10  }
11  }
12 
13  covec.destroy();
14  return _(newmat);
15 }
CPPL_INT l
vector size
Definition: _dcovector.hpp:9
_dgematrix i(const _dgbmatrix &mat)
CPPL_INT l
vector size
Definition: drovector.hpp:9
Real Double-precision General Dence Matrix Class.
Definition: dgematrix.hpp:3
CPPL_INT m
matrix row size
Definition: _dgematrix.hpp:9
void destroy() const
_dcovector _(dcovector &vec)