pub struct OPQMatrixImpl { /* private fields */ }
Implementations§
Source§impl OPQMatrixImpl
impl OPQMatrixImpl
pub fn new(d: u32, m: u32, d2: u32) -> Result<Self>
pub fn set_verbose(&mut self, value: bool)
pub fn verbose(&self) -> bool
pub fn set_niter(&mut self, value: u32)
pub fn niter(&self) -> u32
pub fn set_niter_pq(&mut self, value: u32)
pub fn niter_pq(&self) -> u32
Trait Implementations§
Source§impl Drop for OPQMatrixImpl
impl Drop for OPQMatrixImpl
Source§impl LinearTransform for OPQMatrixImplwhere
Self: NativeVectorTransform + VectorTransform,
impl LinearTransform for OPQMatrixImplwhere
Self: NativeVectorTransform + VectorTransform,
Source§fn transform_transpose(&self, y: &[f32]) -> Vec<f32>
fn transform_transpose(&self, y: &[f32]) -> Vec<f32>
compute x = A^T * (x - b)
is reverse transform if A has orthonormal lines
Source§fn set_is_orthonormal(&mut self)
fn set_is_orthonormal(&mut self)
compute A^T * A to set the is_orthonormal flag
Source§fn is_orthonormal(&self) -> bool
fn is_orthonormal(&self) -> bool
Getter for is_orthonormal
Source§impl NativeVectorTransform for OPQMatrixImpl
impl NativeVectorTransform for OPQMatrixImpl
Source§fn inner_ptr(&self) -> *mut FaissVectorTransform
fn inner_ptr(&self) -> *mut FaissVectorTransform
Retrieve a pointer to the native object.
impl Send for OPQMatrixImpl
impl Sync for OPQMatrixImpl
Auto Trait Implementations§
impl Freeze for OPQMatrixImpl
impl RefUnwindSafe for OPQMatrixImpl
impl Unpin for OPQMatrixImpl
impl UnwindSafe for OPQMatrixImpl
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