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:
|