CPPLapack
 All Classes Files Functions Variables Friends Pages
Functions
_zrovector-_zcovector.hpp File Reference

Go to the source code of this file.

Functions

comple operator* (const _zrovector &rovec, const _zcovector &covec)
 

Function Documentation

comple operator* ( const _zrovector rovec,
const _zcovector covec 
)
inline

_zrovector*_zcovector operator

Definition at line 3 of file _zrovector-_zcovector.hpp.

References _zrovector::array, _zcovector::array, _zrovector::destroy(), _zcovector::destroy(), _zcovector::l, and _zrovector::l.

4 {CPPL_VERBOSE_REPORT;
5 #ifdef CPPL_DEBUG
6  if(rovec.l!=covec.l){
7  ERROR_REPORT;
8  std::cerr << "These two vectors can not make a product." << std::endl
9  << "Your input was (" << rovec.l << ") * (" << covec.l << ")." << std::endl;
10  exit(1);
11  }
12 #endif//CPPL_DEBUG
13 
14  CPPL_INT inc =1;
15 
16  comple val =zdotu_( &rovec.l, rovec.array, &inc, covec.array, &inc );
17 
18  rovec.destroy();
19  covec.destroy();
20  return val;
21 }
void destroy() const
CPPL_INT l
vector size
Definition: _zrovector.hpp:9
void destroy() const
comple * array
1D array to store vector data
Definition: _zrovector.hpp:10
comple * array
1D array to store vector data
Definition: _zcovector.hpp:10
CPPL_INT l
vector size
Definition: _zcovector.hpp:9