pub struct FullCosineAccumulator<T> { /* private fields */ }Expand description
Accumulator of partial products for a full cosine distance computation (where the norms of both the query and the dataset vector are computed on the fly).
Implementations§
Source§impl<T> FullCosineAccumulator<T>where
T: SIMDVector + SIMDSumTree + SIMDMulAdd + Mul<Output = T> + Add<Output = T>,
T::Scalar: LossyF32Conversion,
impl<T> FullCosineAccumulator<T>where
T: SIMDVector + SIMDSumTree + SIMDMulAdd + Mul<Output = T> + Add<Output = T>,
T::Scalar: LossyF32Conversion,
Trait Implementations§
Source§impl<T> Add for FullCosineAccumulator<T>where
T: Add<Output = T>,
impl<T> Add for FullCosineAccumulator<T>where
T: Add<Output = T>,
Source§impl<T: Clone> Clone for FullCosineAccumulator<T>
impl<T: Clone> Clone for FullCosineAccumulator<T>
Source§fn clone(&self) -> FullCosineAccumulator<T>
fn clone(&self) -> FullCosineAccumulator<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for FullCosineAccumulator<T>
impl<T: Debug> Debug for FullCosineAccumulator<T>
impl<T: Copy> Copy for FullCosineAccumulator<T>
Auto Trait Implementations§
impl<T> Freeze for FullCosineAccumulator<T>where
T: Freeze,
impl<T> RefUnwindSafe for FullCosineAccumulator<T>where
T: RefUnwindSafe,
impl<T> Send for FullCosineAccumulator<T>where
T: Send,
impl<T> Sync for FullCosineAccumulator<T>where
T: Sync,
impl<T> Unpin for FullCosineAccumulator<T>where
T: Unpin,
impl<T> UnsafeUnpin for FullCosineAccumulator<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for FullCosineAccumulator<T>where
T: UnwindSafe,
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