src/arch/simddetect.cpp
static TFloat DotProductGeneric(const TFloat *u, const TFloat *v, int n) {
  TFloat total = 0;
  for (int k = 0; k < n; ++k) {
    total += u[k] * v[k];
  }
  return total;
}
// Computes and returns the dot product of the two n-vectors u and v.
Computes and returns the dot product of the two n-vectors u and v.
Computes and returns the dot product of the two n - vectors u and v .
static TFloat DotProductGeneric(const TFloat *u, const TFloat *v, int n) {
  TFloat total = 0;
  for (int k = 0; k < n; ++k) {
    total += u[k] * v[k];
  }
  return total;
}
static TFloat DotProductGeneric ( const TFloat * u , const TFloat * v , int n ) { TFloat total = 0 ; for ( int k = 0 ; k < n ; ++ k ) { total += u [ k ] * v [ k ] ; } return total ; }
Computes and returns the dot product of the two n-vectors u and v.
Computes and returns the dot product of the two n - vectors u and v .