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

double Impala::Core::Vector::DotProduct ( const Vector::VectorTem< double > &  v1,
const Vector::VectorTem< double > &  v2 
) [inline]

Definition at line 15 of file DotProduct.h.

References Impala::Core::Vector::VectorTem< ElemT >::Size().

Referenced by Impala::Application::Precompute::ComputeMatrix().

00017 {
00018     int length = v1.Size();
00019     double accumulator = 0;
00020     for (int i=0 ; i<length ; i++)
00021     {
00022         accumulator += (v1[i] * v2[i]);
00023     }
00024     return accumulator;
00025 }

Here is the call graph for this function:


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