#include <AuxIndexStructures.h>
Public Types | |
typedef Index::idx_t | idx_t |
Public Member Functions | |
RangeSearchResult (size_t nq) | |
lims must be allocated on input to range_search. | |
virtual void | do_allocation () |
Public Attributes | |
size_t | nq |
nb of queries | |
size_t * | lims |
size (nq + 1) | |
idx_t * | labels |
result for query i is labels[lims[i]:lims[i+1]] | |
float * | distances |
corresponding distances (not sorted) | |
size_t | buffer_size |
size of the result buffers used | |
The objective is to have a simple result structure while minimizing the number of mem copies in the result. The method do_allocation can be overloaded to allocate the result tables in the matrix type of a srcipting language like Lua or Python.
Definition at line 35 of file AuxIndexStructures.h.
|
virtual |
called when lims contains the nb of elements result entries for each query
Definition at line 34 of file AuxIndexStructures.cpp.