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

Function reconstruct_vec

include/rabitqlib/quantization/rabitq.hpp:364–370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

362
363template <typename T, typename TP>
364inline void reconstruct_vec(
365 const TP* quantized_vec, T delta, T vl, size_t dim, T* results
366) {
367 RowMajorArrayMap<T> result_arr(results, 1, dim);
368 result_arr =
369 (ConstRowMajorArrayMap<TP>(quantized_vec, 1, dim).template cast<T>() * delta) + vl;
370}
371
372template <typename TF, typename TI>
373inline TF full_est_dist(

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected