|
| GpuIndexIVF (GpuResources *resources, int dims, faiss::MetricType metric, int nlist, GpuIndexIVFConfig config=GpuIndexIVFConfig()) |
|
void | copyFrom (const faiss::IndexIVF *index) |
| Copy what we need from the CPU equivalent.
|
|
void | copyTo (faiss::IndexIVF *index) const |
| Copy what we have to the CPU equivalent.
|
|
int | getNumLists () const |
| Returns the number of inverted lists we're managing.
|
|
GpuIndexFlat * | getQuantizer () |
| Return the quantizer we're using.
|
|
void | setNumProbes (int nprobe) |
| Sets the number of list probes per query.
|
|
int | getNumProbes () const |
| Returns our current number of list probes per query.
|
|
void | add (Index::idx_t n, const float *x) override |
|
| GpuIndex (GpuResources *resources, int dims, faiss::MetricType metric, GpuIndexConfig config) |
|
int | getDevice () const |
|
GpuResources * | getResources () |
|
void | add_with_ids (Index::idx_t n, const float *x, const Index::idx_t *ids) override |
|
void | search (faiss::Index::idx_t n, const float *x, faiss::Index::idx_t k, float *distances, faiss::Index::idx_t *labels) const override |
|
| Index (idx_t d=0, MetricType metric=METRIC_INNER_PRODUCT) |
|
virtual void | train (idx_t, const float *) |
|
virtual void | range_search (idx_t n, const float *x, float radius, RangeSearchResult *result) const |
|
void | assign (idx_t n, const float *x, idx_t *labels, idx_t k=1) |
|
virtual void | reset ()=0 |
| removes all elements from the database.
|
|
virtual long | remove_ids (const IDSelector &sel) |
|
virtual void | reconstruct (idx_t key, float *recons) const |
|
virtual void | reconstruct_n (idx_t i0, idx_t ni, float *recons) const |
|
void | compute_residual (const float *x, float *residual, idx_t key) const |
|
void | display () const |
|
Definition at line 37 of file GpuIndexIVF.h.