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

Function data_range

include/rabitqlib/utils/space.hpp:192–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190 size_t dim,
191 size_t num_threads,
192 T (*dist_func)(const T*, const T*, size_t)
193) {
194 std::vector<AnnCandidate<T, PID>> best_entries(num_threads);
195
196#pragma omp parallel for schedule(dynamic)
197 for (size_t i = 0; i < num_points; ++i) {
198 auto tid = omp_get_thread_num();
199 AnnCandidate<T, PID>& cur_entry = best_entries[tid];

Callers 1

LutMethod · 0.85

Calls 2

minCoeffMethod · 0.45
maxCoeffMethod · 0.45

Tested by

no test coverage detected