CPPLapack
 All Classes Files Functions Variables Friends Pages
_zrovector-zcovector.hpp
Go to the documentation of this file.
1 //=============================================================================
2 /*! _zrovector*zcovector operator */
3 inline comple operator*(const _zrovector& rovec, const zcovector& covec)
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
comple operator*(const _zrovector &rovec, const zcovector &covec)
CPPL_INT l
vector size
Definition: zcovector.hpp:9
void destroy() const
CPPL_INT l
vector size
Definition: _zrovector.hpp:9
(DO NOT USE) Smart-temporary Complex Double-precision Row Vector Class
Definition: _zrovector.hpp:3
comple * array
1D array to store vector data
Definition: _zrovector.hpp:10
Complex Double-precision Column Vector Class.
Definition: zcovector.hpp:3