pub struct F64x2(/* private fields */);
Implementations§
source§impl F64x2
impl F64x2
sourcepub fn from_slice(slice: &[f64]) -> Self
pub fn from_slice(slice: &[f64]) -> Self
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 SIMD lane-slices
sourcepub fn cosine_inner(a: &[f64], b: &[f64]) -> [F64x2; 3]
pub fn cosine_inner(a: &[f64], b: &[f64]) -> [F64x2; 3]
Calculate the cosine accumulators (3) between two SIMD lane-slices
sourcepub fn squared_euclidean(a: &[f64], b: &[f64]) -> f64
pub fn squared_euclidean(a: &[f64], b: &[f64]) -> f64
Calculate euclidean distance between two slices of equal length, using auto-vectorized SIMD primitives
pub fn euclidean(a: &[f64], b: &[f64]) -> f64
pub fn cosine_acc(a: &[f64], b: &[f64]) -> [f64; 3]
pub fn cosine(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 PartialEq for F64x2
impl PartialEq for F64x2
source§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