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::l, and zcovector::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 ) );
  
  return val;
}
 All Classes Files Functions Variables Friends