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