pub struct SquaredL2 {}Expand description
Compute the squared L2 distance between two vectors.
Trait Implementations§
Source§impl<A, T, L, R> FTarget2<A, T, L, R> for SquaredL2where
A: Architecture,
L: ToSlice,
R: ToSlice,
Self: Target2<A, T, L, R>,
impl<A, T, L, R> FTarget2<A, T, L, R> for SquaredL2where
A: Architecture,
L: ToSlice,
R: ToSlice,
Self: Target2<A, T, L, R>,
Source§impl PureDistanceFunction<&[f16], &[f16], MathematicalValue<f32>> for SquaredL2
impl PureDistanceFunction<&[f16], &[f16], MathematicalValue<f32>> for SquaredL2
Source§impl PureDistanceFunction<&[f16], &[f16], SimilarityScore<f32>> for SquaredL2
impl PureDistanceFunction<&[f16], &[f16], SimilarityScore<f32>> for SquaredL2
Source§impl<const N: usize> PureDistanceFunction<&[f16; N], &[f16; N], MathematicalValue<f32>> for SquaredL2
impl<const N: usize> PureDistanceFunction<&[f16; N], &[f16; N], MathematicalValue<f32>> for SquaredL2
Source§impl<const N: usize> PureDistanceFunction<&[f16; N], &[f16; N], SimilarityScore<f32>> for SquaredL2
impl<const N: usize> PureDistanceFunction<&[f16; N], &[f16; N], SimilarityScore<f32>> for SquaredL2
Source§impl PureDistanceFunction<&[f32], &[f16], MathematicalValue<f32>> for SquaredL2
impl PureDistanceFunction<&[f32], &[f16], MathematicalValue<f32>> for SquaredL2
Source§impl PureDistanceFunction<&[f32], &[f16], SimilarityScore<f32>> for SquaredL2
impl PureDistanceFunction<&[f32], &[f16], SimilarityScore<f32>> for SquaredL2
Source§impl PureDistanceFunction<&[f32], &[f32], MathematicalValue<f32>> for SquaredL2
impl PureDistanceFunction<&[f32], &[f32], MathematicalValue<f32>> for SquaredL2
Source§impl PureDistanceFunction<&[f32], &[f32], SimilarityScore<f32>> for SquaredL2
impl PureDistanceFunction<&[f32], &[f32], SimilarityScore<f32>> for SquaredL2
Source§impl<const N: usize> PureDistanceFunction<&[f32; N], &[f16; N], MathematicalValue<f32>> for SquaredL2
impl<const N: usize> PureDistanceFunction<&[f32; N], &[f16; N], MathematicalValue<f32>> for SquaredL2
Source§impl<const N: usize> PureDistanceFunction<&[f32; N], &[f16; N], SimilarityScore<f32>> for SquaredL2
impl<const N: usize> PureDistanceFunction<&[f32; N], &[f16; N], SimilarityScore<f32>> for SquaredL2
Source§impl<const N: usize> PureDistanceFunction<&[f32; N], &[f32; N], MathematicalValue<f32>> for SquaredL2
impl<const N: usize> PureDistanceFunction<&[f32; N], &[f32; N], MathematicalValue<f32>> for SquaredL2
Source§impl<const N: usize> PureDistanceFunction<&[f32; N], &[f32; N], SimilarityScore<f32>> for SquaredL2
impl<const N: usize> PureDistanceFunction<&[f32; N], &[f32; N], SimilarityScore<f32>> for SquaredL2
Source§impl PureDistanceFunction<&[i8], &[i8], MathematicalValue<f32>> for SquaredL2
impl PureDistanceFunction<&[i8], &[i8], MathematicalValue<f32>> for SquaredL2
Source§impl PureDistanceFunction<&[i8], &[i8], SimilarityScore<f32>> for SquaredL2
impl PureDistanceFunction<&[i8], &[i8], SimilarityScore<f32>> for SquaredL2
Source§impl<const N: usize> PureDistanceFunction<&[i8; N], &[i8; N], MathematicalValue<f32>> for SquaredL2
impl<const N: usize> PureDistanceFunction<&[i8; N], &[i8; N], MathematicalValue<f32>> for SquaredL2
Source§impl<const N: usize> PureDistanceFunction<&[i8; N], &[i8; N], SimilarityScore<f32>> for SquaredL2
impl<const N: usize> PureDistanceFunction<&[i8; N], &[i8; N], SimilarityScore<f32>> for SquaredL2
Source§impl PureDistanceFunction<&[u8], &[u8], MathematicalValue<f32>> for SquaredL2
impl PureDistanceFunction<&[u8], &[u8], MathematicalValue<f32>> for SquaredL2
Source§impl PureDistanceFunction<&[u8], &[u8], SimilarityScore<f32>> for SquaredL2
impl PureDistanceFunction<&[u8], &[u8], SimilarityScore<f32>> for SquaredL2
Source§impl<const N: usize> PureDistanceFunction<&[u8; N], &[u8; N], MathematicalValue<f32>> for SquaredL2
impl<const N: usize> PureDistanceFunction<&[u8; N], &[u8; N], MathematicalValue<f32>> for SquaredL2
Source§impl<const N: usize> PureDistanceFunction<&[u8; N], &[u8; N], SimilarityScore<f32>> for SquaredL2
impl<const N: usize> PureDistanceFunction<&[u8; N], &[u8; N], SimilarityScore<f32>> for SquaredL2
Source§impl<A, T, L, R> Target2<A, T, L, R> for SquaredL2where
A: Architecture,
L: ToSlice,
R: ToSlice,
L2: SIMDSchema<L::Target, R::Target, A>,
Self: PostOp<<L2 as SIMDSchema<L::Target, R::Target, A>>::Return, T>,
impl<A, T, L, R> Target2<A, T, L, R> for SquaredL2where
A: Architecture,
L: ToSlice,
R: ToSlice,
L2: SIMDSchema<L::Target, R::Target, A>,
Self: PostOp<<L2 as SIMDSchema<L::Target, R::Target, A>>::Return, T>,
impl Copy for SquaredL2
Auto Trait Implementations§
impl Freeze for SquaredL2
impl RefUnwindSafe for SquaredL2
impl Send for SquaredL2
impl Sync for SquaredL2
impl Unpin for SquaredL2
impl UnsafeUnpin for SquaredL2
impl UnwindSafe for SquaredL2
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