pub struct ResumableCosine<A = Current>(/* private fields */)
where
A: Architecture,
CosineStateless: SIMDSchema<f32, f32, A>;Expand description
A resumable cosine similarity computation.
Trait Implementations§
Source§impl<A> Clone for ResumableCosine<A>
impl<A> Clone for ResumableCosine<A>
Source§fn clone(&self) -> ResumableCosine<A>
fn clone(&self) -> ResumableCosine<A>
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<A> Debug for ResumableCosine<A>
impl<A> Debug for ResumableCosine<A>
Source§impl<A> ResumableSIMDSchema<f32, f32, A> for ResumableCosine<A>
impl<A> ResumableSIMDSchema<f32, f32, A> for ResumableCosine<A>
type NonResumable = CosineStateless
type FinalReturn = f32
fn init(arch: A) -> Self
fn combine_with( &self, other: <CosineStateless as SIMDSchema<f32, f32, A>>::Accumulator, ) -> Self
fn sum(&self) -> f32
impl<A> Copy for ResumableCosine<A>
Auto Trait Implementations§
impl<A = Scalar> !Freeze for ResumableCosine<A>
impl<A = Scalar> !RefUnwindSafe for ResumableCosine<A>
impl<A = Scalar> !Send for ResumableCosine<A>
impl<A = Scalar> !Sync for ResumableCosine<A>
impl<A = Scalar> !Unpin for ResumableCosine<A>
impl<A = Scalar> !UnsafeUnpin for ResumableCosine<A>
impl<A = Scalar> !UnwindSafe for ResumableCosine<A>
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