#[repr(C)]pub struct cuvsAllNeighborsIndexParams {
pub algo: cuvsAllNeighborsAlgo,
pub overlap_factor: usize,
pub n_clusters: usize,
pub metric: cuvsDistanceType,
pub ivf_pq_params: cuvsIvfPqIndexParams_t,
pub nn_descent_params: cuvsNNDescentIndexParams_t,
}Expand description
@brief Parameters controlling SNMG all-neighbors build.
Fields§
§algo: cuvsAllNeighborsAlgo< Local kNN graph build algorithm
overlap_factor: usize< Number of clusters each point is assigned to (must be < n_clusters)
n_clusters: usize< Number of clusters/batches to partition the dataset into (> overlap_factor)
metric: cuvsDistanceType< Distance metric used for graph construction
ivf_pq_params: cuvsIvfPqIndexParams_t< Parameters for IVF-PQ algorithm (when algo == < CUVS_ALL_NEIGHBORS_ALGO_IVF_PQ)
nn_descent_params: cuvsNNDescentIndexParams_t< Parameters for NN-Descent algorithm (when algo < == CUVS_ALL_NEIGHBORS_ALGO_NN_DESCENT)
Trait Implementations§
Source§impl Clone for cuvsAllNeighborsIndexParams
impl Clone for cuvsAllNeighborsIndexParams
Source§fn clone(&self) -> cuvsAllNeighborsIndexParams
fn clone(&self) -> cuvsAllNeighborsIndexParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for cuvsAllNeighborsIndexParams
Auto Trait Implementations§
impl !Send for cuvsAllNeighborsIndexParams
impl !Sync for cuvsAllNeighborsIndexParams
impl Freeze for cuvsAllNeighborsIndexParams
impl RefUnwindSafe for cuvsAllNeighborsIndexParams
impl Unpin for cuvsAllNeighborsIndexParams
impl UnsafeUnpin for cuvsAllNeighborsIndexParams
impl UnwindSafe for cuvsAllNeighborsIndexParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more