CPPLapack
 All Classes Files Functions Variables Friends
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.

{VERBOSE_REPORT;
#ifdef  CPPL_DEBUG
  if(rovec.l!=covec.l){
    ERROR_REPORT;
    std::cerr << "These two vectors can not make a product." << std::endl
              << "Your input was (" << rovec.l << ") * (" << covec.l << ")." << std::endl;
    exit(1);
  }
#endif//CPPL_DEBUG
  
  comple val( zdotu_( rovec.l, rovec.array, 1, covec.array, 1 ) );
  
  rovec.destroy();
  covec.destroy();
  return val;
}
 All Classes Files Functions Variables Friends