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

Function vec_rescale

include/rabitqlib/utils/space.hpp:124–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122template <typename T>
123inline void pack_binary(
124 const int* __restrict__ binary_code, T* __restrict__ compact_code, size_t length
125) {
126 constexpr size_t kTypeBits = sizeof(T) * 8;
127
128 for (size_t i = 0; i < length; i += kTypeBits) {
129 T cur = 0;
130 for (size_t j = 0; j < kTypeBits; ++j) {

Callers 1

rotateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected