|
kodama-cpp
Standalone float32 KODAMA kernels for CPU, CUDA, and Apple Metal
|
#include <kodama.hpp>
Public Member Functions | |
| ResidentIVFIndex () | |
| ~ResidentIVFIndex () | |
| ResidentIVFIndex (ResidentIVFIndex &&) noexcept | |
| ResidentIVFIndex & | operator= (ResidentIVFIndex &&) noexcept |
| ResidentIVFIndex (const ResidentIVFIndex &)=delete | |
| ResidentIVFIndex & | operator= (const ResidentIVFIndex &)=delete |
| bool | valid () const noexcept |
| Backend | backend () const noexcept |
| DistanceMetric | metric () const noexcept |
| int | rows () const noexcept |
| int | dimensions () const noexcept |
| int | nlist () const noexcept |
| double | build_seconds () const noexcept |
Friends | |
| ResidentIVFIndex | BuildResidentIVFIndex (MatrixView, const KNNOptions &) |
| NeighborGraph | SearchResidentIVFIndex (const ResidentIVFIndex &, MatrixView, int, ResidentIVFSearchStats *) |
| NeighborGraph | SearchResidentIVFIndexSelf (const ResidentIVFIndex &, int, bool, ResidentIVFSearchStats *) |
Move-only owner of an accelerator-resident IVF-Flat index.
The training matrix, projected matrix, centroids, inverted-list offsets, and inverted-list identifiers remain allocated on the selected CUDA or Metal device until this object is destroyed.
Definition at line 373 of file kodama.hpp.
| kodama::ResidentIVFIndex::ResidentIVFIndex | ( | ) |
| kodama::ResidentIVFIndex::~ResidentIVFIndex | ( | ) |
|
noexcept |
|
delete |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
delete |
|
noexcept |
|
noexcept |
|
noexcept |
|
friend |
|
friend |
Search an existing accelerator-resident IVF index.
Query rows are uploaded for this call. Returned neighbor identifiers are one-based, matching NeighborGraph throughout the public API.
|
friend |
Search the resident training matrix against itself without uploading it again. Self-neighbors are excluded when exclude_self is true.