#[repr(C)]pub struct cuvsIvfPqIndexParams {Show 13 fields
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 pq_bits: u32,
pub pq_dim: u32,
pub codebook_kind: cuvsIvfPqCodebookGen,
pub force_random_rotation: bool,
pub conservative_memory_allocation: bool,
pub max_train_points_per_pq_code: u32,
pub codes_layout: cuvsIvfPqListLayout,
}Fields§
§metric: cuvsDistanceType§metric_arg: f32§add_data_on_build: bool§n_lists: u32§kmeans_n_iters: u32§kmeans_trainset_fraction: f64§pq_bits: u32§pq_dim: u32§codebook_kind: cuvsIvfPqCodebookGen§force_random_rotation: bool§conservative_memory_allocation: bool§max_train_points_per_pq_code: u32§codes_layout: cuvsIvfPqListLayoutTrait Implementations§
Source§impl Clone for cuvsIvfPqIndexParams
impl Clone for cuvsIvfPqIndexParams
Source§fn clone(&self) -> cuvsIvfPqIndexParams
fn clone(&self) -> cuvsIvfPqIndexParams
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 cuvsIvfPqIndexParams
Auto Trait Implementations§
impl Freeze for cuvsIvfPqIndexParams
impl RefUnwindSafe for cuvsIvfPqIndexParams
impl Send for cuvsIvfPqIndexParams
impl Sync for cuvsIvfPqIndexParams
impl Unpin for cuvsIvfPqIndexParams
impl UnsafeUnpin for cuvsIvfPqIndexParams
impl UnwindSafe for cuvsIvfPqIndexParams
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