Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

template<class ElemT>
ElemT Impala::Core::Vector::operator * ( const VectorTem< ElemT > &  a,
const VectorTem< ElemT > &  b 
) [inline]

Definition at line 270 of file VectorTem.h.

References Impala::Core::Vector::VectorTem< ElemT >::mSize.

00271 {
00272     if (a.mSize != b.mSize)
00273     {
00274         std::cerr << "nonconformant VectorTem * VectorTem operands." << std::endl;
00275         return 0;
00276     }
00277     ElemT sum = 0;
00278     int i;
00279     for (i=0 ; i<a.mSize ; i++)
00280         sum += a[i] * b[i];
00281     return sum;
00282 }


Generated on Thu Jan 13 09:21:37 2011 for ImpalaSrc by  doxygen 1.5.1