MCPcopy Create free account
hub / github.com/BinomialLLC/basis_universal / squared_distance

Method squared_distance

example_transcoding/utils.h:974–983  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

972 }
973
974 inline T squared_distance(const vec& rhs) const
975 {
976 T dist2 = 0;
977 for (uint32_t i = 0; i < N; i++)
978 {
979 T d = m_s[i] - rhs.m_s[i];
980 dist2 += d * d;
981 }
982 return dist2;
983 }
984
985 inline T squared_distance(const vec& rhs, T early_out) const
986 {

Callers 1

color_distanceFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected