Struct faiss::vector_transform::OPQMatrixImpl
source · 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 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