pub struct CenteringTransform { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Drop for CenteringTransform
impl Drop for CenteringTransform
Source§impl VectorTransform for CenteringTransform
impl VectorTransform for CenteringTransform
fn inner_ptr(&self) -> *mut FaissVectorTransform
fn is_trained(&self) -> bool
fn d_in(&self) -> u32
fn d_out(&self) -> u32
fn train(&mut self, n: usize, x: &[f32]) -> Result<()>
fn apply(&self, n: usize, x: &[f32]) -> Result<Vec<f32>>
fn apply_noalloc(&self, n: usize, x: &[f32], xt: &mut [f32])
fn reverse_transform(&self, n: usize, xt: &[f32], x: &mut [f32])
Auto Trait Implementations§
impl Freeze for CenteringTransform
impl RefUnwindSafe for CenteringTransform
impl !Send for CenteringTransform
impl !Sync for CenteringTransform
impl Unpin for CenteringTransform
impl UnsafeUnpin for CenteringTransform
impl UnwindSafe for CenteringTransform
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