#[repr(C)]pub struct cuvsIvfFlatIndexParams {
pub metric: cuvsDistanceType,
pub metric_arg: f32,
pub add_data_on_build: bool,
pub n_lists: u32,
pub kmeans_n_iters: u32,
pub kmeans_trainset_fraction: f64,
pub adaptive_centers: bool,
pub conservative_memory_allocation: bool,
}Fields§
§metric: cuvsDistanceType§metric_arg: f32§add_data_on_build: bool§n_lists: u32§kmeans_n_iters: u32§kmeans_trainset_fraction: f64§adaptive_centers: bool§conservative_memory_allocation: boolTrait Implementations§
Source§impl Clone for cuvsIvfFlatIndexParams
impl Clone for cuvsIvfFlatIndexParams
Source§fn clone(&self) -> cuvsIvfFlatIndexParams
fn clone(&self) -> cuvsIvfFlatIndexParams
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 cuvsIvfFlatIndexParams
Auto Trait Implementations§
impl Freeze for cuvsIvfFlatIndexParams
impl RefUnwindSafe for cuvsIvfFlatIndexParams
impl Send for cuvsIvfFlatIndexParams
impl Sync for cuvsIvfFlatIndexParams
impl Unpin for cuvsIvfFlatIndexParams
impl UnsafeUnpin for cuvsIvfFlatIndexParams
impl UnwindSafe for cuvsIvfFlatIndexParams
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