MCPcopy Create free account
hub / github.com/VectorDB-NTU/RaBitQ-Library / euclidean_sqr

Function euclidean_sqr

include/rabitqlib/utils/space.hpp:130–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128 for (size_t i = 0; i < length; i += kTypeBits) {
129 T cur = 0;
130 for (size_t j = 0; j < kTypeBits; ++j) {
131 cur |= (static_cast<T>(binary_code[i + j]) << (kTypeBits - 1 - j));
132 }
133 *compact_code = cur;
134 ++compact_code;
135 }
136}
137

Callers 2

centroids_distancesMethod · 0.85
search_knnMethod · 0.85

Calls 1

dotMethod · 0.45

Tested by

no test coverage detected