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(), _zrovector::l, and zcovector::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  return val;
20 }
comple * array
1D array to store vector data
Definition: zcovector.hpp:10
CPPL_INT l
vector size
Definition: zcovector.hpp:9
void destroy() const
CPPL_INT l
vector size
Definition: _zrovector.hpp:9
comple * array
1D array to store vector data
Definition: _zrovector.hpp:10