pub struct F32x16(/* private fields */);
Implementations§
source§impl F32x16
impl F32x16
sourcepub fn from_slice(slice: &[f32]) -> Self
pub fn from_slice(slice: &[f32]) -> Self
pub fn horizontal_add(self) -> f32
source§impl F32x16
impl F32x16
sourcepub fn euclidean_inner(a: &[f32], b: &[f32]) -> F32x16
pub fn euclidean_inner(a: &[f32], b: &[f32]) -> F32x16
Calculate the squared distance between two SIMD lane-slices
sourcepub fn cosine_inner(a: &[f32], b: &[f32]) -> [F32x16; 3]
pub fn cosine_inner(a: &[f32], b: &[f32]) -> [F32x16; 3]
Calculate the cosine accumulators (3) between two SIMD lane-slices
sourcepub fn squared_euclidean(a: &[f32], b: &[f32]) -> f32
pub fn squared_euclidean(a: &[f32], b: &[f32]) -> f32
Calculate euclidean distance between two slices of equal length, using auto-vectorized SIMD primitives
pub fn euclidean(a: &[f32], b: &[f32]) -> f32
pub fn cosine_acc(a: &[f32], b: &[f32]) -> [f32; 3]
pub fn cosine(a: &[f32], b: &[f32]) -> f32
Trait Implementations§
source§impl AddAssign for F32x16
impl AddAssign for F32x16
source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+=
operation. Read moresource§impl DivAssign for F32x16
impl DivAssign for F32x16
source§fn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
Performs the
/=
operation. Read moresource§impl MulAssign for F32x16
impl MulAssign for F32x16
source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
Performs the
*=
operation. Read moresource§impl PartialEq for F32x16
impl PartialEq for F32x16
source§impl SubAssign for F32x16
impl SubAssign for F32x16
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreimpl Copy for F32x16
impl StructuralPartialEq for F32x16
Auto Trait Implementations§
impl Freeze for F32x16
impl RefUnwindSafe for F32x16
impl Send for F32x16
impl Sync for F32x16
impl Unpin for F32x16
impl UnwindSafe for F32x16
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)