Main Page | Class List | File List | Class Members | File Members | Related Pages

dcovector-_drovector.hpp File Reference

Go to the source code of this file.

Functions

_dgematrix operator * (const dcovector &covec, const _drovector &rovec)


Function Documentation

_dgematrix operator * const dcovector covec,
const _drovector rovec
[inline]
 

dcovector*_drovector operator

Definition at line 3 of file dcovector-_drovector.hpp.

References _drovector::destroy(), _drovector::L, dcovector::L, _dgematrix::M, and _dgematrix::N.

00004 {
00005 #ifdef  CPPSL_DEBUG
00006   if(covec.L!=rovec.L){
00007     std::cerr << "[ERROR] operator*(const dcovector&, const _drovector&)"
00008               << std::endl
00009               << "These two vectors can not make a product." << std::endl
00010               << "Your input was (" << covec.L << ") * (" << rovec.L << ")."
00011               << std::endl;
00012     exit(1);
00013   }
00014 #endif//CPPSL_DEBUG
00015   
00016   _dgematrix newmat(covec.L, covec.L);
00017   for(long i=0; i<newmat.M; i++){ for(long j=0; j<newmat.N; j++){
00018     newmat(i,j) =covec(i)*rovec(j);
00019   }}
00020   
00021   rovec.destroy();
00022   return newmat;
00023 }


Generated on Sat Jan 31 19:25:44 2004 for CPPScaLapack by doxygen 1.3.5