pub struct F64x2(/* private fields */);
Implementations§
Source§impl F64x2
impl F64x2
pub fn from_slice(slice: &[f64]) -> F64x2
pub fn horizontal_add(self) -> f64
Source§impl F64x2
impl F64x2
Sourcepub fn euclidean_inner(a: &[f64], b: &[f64]) -> F64x2
pub fn euclidean_inner(a: &[f64], b: &[f64]) -> F64x2
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 F64x2
impl AddAssign for F64x2
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+=
operation. Read moreSource§impl DivAssign for F64x2
impl DivAssign for F64x2
Source§fn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
Performs the
/=
operation. Read moreSource§impl MulAssign for F64x2
impl MulAssign for F64x2
Source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
Performs the
*=
operation. Read moreSource§impl SubAssign for F64x2
impl SubAssign for F64x2
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreimpl Copy for F64x2
impl StructuralPartialEq for F64x2
Auto Trait Implementations§
impl Freeze for F64x2
impl RefUnwindSafe for F64x2
impl Send for F64x2
impl Sync for F64x2
impl Unpin for F64x2
impl UnwindSafe for F64x2
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