All Neighbors
Source header: cuvs/neighbors/all_neighbors.h
All-neighbors C-API build parameters
cuvsAllNeighborsAlgo
Graph build algorithm selection.
Values
cuvsAllNeighborsIndexParams
Parameters controlling SNMG all-neighbors build.
Fields
cuvsAllNeighborsIndexParamsCreate
Create a default all-neighbors index parameters struct.
Parameters
Returns
cuvsAllNeighborsIndexParamsDestroy
Destroy an all-neighbors index parameters struct.
Parameters
Returns
All-neighbors C-API build
cuvsAllNeighborsBuild
Build an all-neighbors k-NN graph automatically detecting host vs device dataset.
The function automatically detects whether the dataset is host-resident or device-resident and calls the appropriate implementation. For host datasets, it partitions data into n_clusters clusters and assigns each row to overlap_factor nearest clusters. For device datasets, n_clusters must be 1 (no batching); overlap_factor is ignored.
Output memory space: a host dataset supports host- or device-resident outputs; a device dataset requires device-resident outputs. All provided outputs must share the same memory space.
Parameters
Returns