#include <AuxIndexStructures.h>
Classes | |
struct | Buffer |
Public Types | |
typedef Index::idx_t | idx_t |
Public Member Functions | |
BufferList (size_t buffer_size) | |
void | append_buffer () |
void | add (idx_t id, float dis) |
void | copy_range (size_t ofs, size_t n, idx_t *dest_ids, float *dest_dis) |
Public Attributes | |
size_t | buffer_size |
std::vector< Buffer > | buffers |
size_t | wp |
write pointer in the last buffer. | |
List of temporary buffers used to store results before they are copied to the RangeSearchResult object.
Definition at line 109 of file AuxIndexStructures.h.
void faiss::BufferList::copy_range | ( | size_t | ofs, |
size_t | n, | ||
idx_t * | dest_ids, | ||
float * | dest_dis | ||
) |
copy elemnts ofs:ofs+n-1 seen as linear data in the buffers to tables dest_ids, dest_dis
Definition at line 82 of file AuxIndexStructures.cpp.