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

Function scalar_quantize_optimized

include/rabitqlib/utils/space.hpp:38–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36template <typename T>
37void scalar_quantize_optimized(
38 T* __restrict__ result,
39 const float* __restrict__ vec0,
40 size_t dim,
41 float lo,
42 float delta
43) {
44 scalar_quantize_normal(result, vec0, dim, lo, delta);
45}
46
47template <>
48inline void scalar_quantize_optimized<uint8_t>(
49 uint8_t* __restrict__ result,

Callers 1

scalar_quantizeFunction · 0.85

Calls 1

scalar_quantize_normalFunction · 0.85

Tested by

no test coverage detected