pub struct F32x8(/* private fields */);Implementations§
Source§impl F32x8
impl F32x8
pub fn from_slice(slice: &[f32]) -> Self
pub fn horizontal_add(self) -> f32
Source§impl F32x8
impl F32x8
Sourcepub fn euclidean_inner(a: &[f32], b: &[f32]) -> F32x8
pub fn euclidean_inner(a: &[f32], b: &[f32]) -> F32x8
Calculate the squared distance between two slices
Sourcepub fn squared_distance(a: &[f32], b: &[f32]) -> f32
pub fn squared_distance(a: &[f32], b: &[f32]) -> f32
Calculate euclidean distance between two slices of equal length, using auto-vectorized SIMD primitives
pub fn distance(a: &[f32], b: &[f32]) -> f32
Trait Implementations§
Source§impl AddAssign for F32x8
impl AddAssign for F32x8
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+= operation. Read moreSource§impl DivAssign for F32x8
impl DivAssign for F32x8
Source§fn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
Performs the
/= operation. Read moreSource§impl MulAssign for F32x8
impl MulAssign for F32x8
Source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
Performs the
*= operation. Read moreSource§impl SubAssign for F32x8
impl SubAssign for F32x8
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-= operation. Read moreimpl Copy for F32x8
impl StructuralPartialEq for F32x8
Auto Trait Implementations§
impl Freeze for F32x8
impl RefUnwindSafe for F32x8
impl Send for F32x8
impl Sync for F32x8
impl Unpin for F32x8
impl UnwindSafe for F32x8
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