template<class ElemT>
Definition at line 16 of file Norm2Dist.h. References Impala::Core::Vector::VectorTem< ElemT >::Size(). Referenced by Norm2Dist(). 00017 { 00018 Real64 sum = 0; 00019 for (int i=0 ; i<v1.Size() ; i++) 00020 { 00021 Real64 d = (Real64) v1[i] - (Real64) v2[i]; 00022 sum += d * d; 00023 } 00024 return sum; 00025 }
Here is the call graph for this function:
|