Struct f64x8

#[repr(C, align(64))]
pub struct f64x8<S: Simd> { pub simd: S, /* private fields */ }

A SIMD vector of 8 f64 elements.

This type's memory layout is identical to that of [f64; 8], except that it is aligned to 64 bytes.

You may construct this vector type using the Self::splat, Self::from_slice, Self::simd_from, Self::from_fn, and Self::block_splat methods.

# use fearless_simd::{prelude::*, f64x8};
fn construct_simd<S: Simd>(simd: S) {
    // From a single scalar value:
    let a = f64x8::splat(simd, 1.0);
    let b = f64x8::simd_from(simd, 1.0);

    // From a slice:
    let c = f64x8::from_slice(simd, &[1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0]);

    // From an array:
    let d = f64x8::simd_from(simd, [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0]);

    // From an element-wise function:
    let e = f64x8::from_fn(simd, |i| i as f64);
    # use fearless_simd::f64x2;
    // From `Self::Block`:
    let f = f64x8::block_splat(f64x2::simd_from(simd, [1.0, 2.0]));
}

Fields

simd: S

Trait Implementations

impl<S: Clone + Simd> Clone for f64x8<S> where S::f64x8: Clone,

fn clone(&self) -> Self

impl<S: Copy + Simd> Copy for f64x8<S> where S::f64x8: Copy,

impl<S: Simd + Debug> Debug for f64x8<S>

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl<S: Simd> Add for f64x8<S>

type Output = f64x8<S>;
fn add(self, rhs: Self) -> Self::Output

Add two vectors element-wise.

impl<S: Simd> Add<f64> for f64x8<S>

type Output = f64x8<S>;
fn add(self, rhs: f64) -> Self::Output

impl<S: Simd> AddAssign for f64x8<S>

fn add_assign(&mut self, rhs: Self)

Add two vectors element-wise.

impl<S: Simd> AddAssign<f64> for f64x8<S>

fn add_assign(&mut self, rhs: f64)

impl<S: Simd> Bytes for f64x8<S>

type Bytes = u8x64<S>;
fn to_bytes(self) -> Self::Bytes
fn from_bytes(value: Self::Bytes) -> Self

impl<S: Simd> Deref for f64x8<S>

type Target = [f64; 8];
fn deref(&self) -> &Self::Target

impl<S: Simd> DerefMut for f64x8<S>

fn deref_mut(&mut self) -> &mut Self::Target

impl<S: Simd> Div for f64x8<S>

type Output = f64x8<S>;
fn div(self, rhs: Self) -> Self::Output

Divide two vectors element-wise.

impl<S: Simd> Div<f64> for f64x8<S>

type Output = f64x8<S>;
fn div(self, rhs: f64) -> Self::Output

impl<S: Simd> DivAssign for f64x8<S>

fn div_assign(&mut self, rhs: Self)

Divide two vectors element-wise.

impl<S: Simd> DivAssign<f64> for f64x8<S>

fn div_assign(&mut self, rhs: f64)

impl<S: Simd> ExtractToken for f64x8<S>

type S = S;
fn token(&self) -> S

impl<S: Simd> Index<usize> for f64x8<S>

type Output = f64;
fn index(&self, i: usize) -> &Self::Output

impl<S: Simd> IndexMut<usize> for f64x8<S>

fn index_mut(&mut self, i: usize) -> &mut Self::Output

impl<S: Simd> Mul for f64x8<S>

type Output = f64x8<S>;
fn mul(self, rhs: Self) -> Self::Output

Multiply two vectors element-wise.

impl<S: Simd> Mul<f64> for f64x8<S>

type Output = f64x8<S>;
fn mul(self, rhs: f64) -> Self::Output

impl<S: Simd> MulAssign for f64x8<S>

fn mul_assign(&mut self, rhs: Self)

Multiply two vectors element-wise.

impl<S: Simd> MulAssign<f64> for f64x8<S>

fn mul_assign(&mut self, rhs: f64)

impl<S: Simd> Neg for f64x8<S>

type Output = f64x8<S>;
fn neg(self) -> Self::Output

Negate each element of the vector.

impl<S: Simd> SimdBase<S> for f64x8<S>

type Element = f64;
type ByteVector = u8x64<S>;
const LEN: usize = 8;
type Mask = mask64x8<S>;
type Block = f64x2<S>;
type Array = [f64; 8];
fn as_slice(&self) -> &[f64]
fn as_mut_slice(&mut self) -> &mut [f64]
fn from_slice(simd: S, slice: &[f64]) -> Self
fn store_slice(&self, slice: &mut [f64])
fn splat(simd: S, val: f64) -> Self
fn block_splat(block: Self::Block) -> Self
fn from_fn(simd: S, f: impl FnMut(usize) -> f64) -> Self
fn slide<const SHIFT: usize>(self, rhs: impl SimdInto<Self, S>) -> Self
fn slide_within_blocks<const SHIFT: usize>(self, rhs: impl SimdInto<Self, S>) -> Self
fn swizzle_dyn_within_blocks(self, indices: impl SimdInto<Self::Bytes, S>) -> Self
fn swizzle_dyn(self, indices: impl SimdInto<Self::Bytes, S>) -> Self
fn swizzle_dyn_precise(self, indices: impl SimdInto<Self::Bytes, S>) -> Self
fn abs(self) -> Self
fn reverse(self) -> Self
fn concat_swizzle_dyn(self, rhs: impl SimdInto<Self, S>, indices: impl SimdInto<Self::Bytes, S>) -> Self
fn concat_swizzle_dyn_precise(self, rhs: impl SimdInto<Self, S>, indices: impl SimdInto<Self::Bytes, S>) -> Self
fn compress(self, mask: Self::Mask) -> Self
fn compress_merge(self, mask: Self::Mask, merge: impl SimdInto<Self, S>) -> Self
fn expand(self, mask: Self::Mask) -> Self
fn expand_merge(self, mask: Self::Mask, merge: impl SimdInto<Self, S>) -> Self
fn reduce_max(self) -> Self::Element
fn reduce_min(self) -> Self::Element
fn reduce_max_precise(self) -> Self::Element
fn reduce_min_precise(self) -> Self::Element
fn reduce_sum(self) -> Self::Element
fn reduce_product(self) -> Self::Element
fn max(self, rhs: impl SimdInto<Self, S>) -> Self
fn min(self, rhs: impl SimdInto<Self, S>) -> Self
fn max_precise(self, rhs: impl SimdInto<Self, S>) -> Self
fn min_precise(self, rhs: impl SimdInto<Self, S>) -> Self
fn clamp(self, min: impl SimdInto<Self, S>, max: impl SimdInto<Self, S>) -> Self
fn simd_eq(self, rhs: impl SimdInto<Self, S>) -> Self::Mask
fn simd_ne(self, rhs: impl SimdInto<Self, S>) -> Self::Mask
fn simd_lt(self, rhs: impl SimdInto<Self, S>) -> Self::Mask
fn simd_le(self, rhs: impl SimdInto<Self, S>) -> Self::Mask
fn simd_ge(self, rhs: impl SimdInto<Self, S>) -> Self::Mask
fn simd_gt(self, rhs: impl SimdInto<Self, S>) -> Self::Mask
fn zip_low(self, rhs: impl SimdInto<Self, S>) -> Self
fn zip_high(self, rhs: impl SimdInto<Self, S>) -> Self
fn unzip_low(self, rhs: impl SimdInto<Self, S>) -> Self
fn unzip_high(self, rhs: impl SimdInto<Self, S>) -> Self
fn interleave(self, rhs: impl SimdInto<Self, S>) -> (Self, Self)
fn deinterleave(self, rhs: impl SimdInto<Self, S>) -> (Self, Self)

impl<S: Simd> SimdCvtFloat<i64x8<S>> for f64x8<S>

fn float_from(x: i64x8<S>) -> Self

Convert each signed 64-bit integer element to a floating-point value.

Values that cannot be exactly represented are rounded to the nearest representable value.

impl<S: Simd> SimdCvtFloat<u64x8<S>> for f64x8<S>

fn float_from(x: u64x8<S>) -> Self

Convert each unsigned 64-bit integer element to a floating-point value.

Values that cannot be exactly represented are rounded to the nearest representable value.

impl<S: Simd> SimdFloat<S> for f64x8<S>

type Bits = u64x8<S>;
fn sqrt(self) -> Self
fn approximate_recip(self) -> Self
fn copysign(self, rhs: impl SimdInto<Self, S>) -> Self
fn mul_add(self, op1: impl SimdInto<Self, S>, op2: impl SimdInto<Self, S>) -> Self
fn mul_add_precise(self, op1: impl SimdInto<Self, S>, op2: impl SimdInto<Self, S>) -> Self
fn mul_sub(self, op1: impl SimdInto<Self, S>, op2: impl SimdInto<Self, S>) -> Self
fn mul_sub_precise(self, op1: impl SimdInto<Self, S>, op2: impl SimdInto<Self, S>) -> Self
fn floor(self) -> Self
fn ceil(self) -> Self
fn round_ties_even(self) -> Self
fn round(self) -> Self
fn fract(self) -> Self
fn trunc(self) -> Self
fn to_degrees(self) -> Self
fn to_radians(self) -> Self
fn is_nan(self) -> Self::Mask
fn is_infinite(self) -> Self::Mask
fn is_finite(self) -> Self::Mask
fn is_subnormal(self) -> Self::Mask
fn is_normal(self) -> Self::Mask
fn is_sign_positive(self) -> Self::Mask
fn is_sign_negative(self) -> Self::Mask

impl<S: Simd> SimdFrom<[f64; 8], S> for f64x8<S>

fn simd_from(simd: S, val: [f64; 8]) -> Self

impl<S: Simd> SimdFrom<__m512d, S> for f64x8<S>

fn simd_from(simd: S, arch: __m512d) -> Self

impl<S: Simd> SimdFrom<f64, S> for f64x8<S>

fn simd_from(simd: S, value: f64) -> Self

impl<S: Simd> SimdNarrow<S> for f64x8<S>

type Narrowed = f32x16<S>;
fn narrow(self, high: Self) -> Self::Narrowed
fn saturating_narrow(self, high: Self) -> Self::Narrowed
fn relaxed_narrow(self, high: Self) -> Self::Narrowed

impl<S: Simd> SimdSplit<S> for f64x8<S>

type Split = f64x4<S>;
fn split(self) -> (Self::Split, Self::Split)

impl<S: Simd> Sub for f64x8<S>

type Output = f64x8<S>;
fn sub(self, rhs: Self) -> Self::Output

Subtract two vectors element-wise.

impl<S: Simd> Sub<f64> for f64x8<S>

type Output = f64x8<S>;
fn sub(self, rhs: f64) -> Self::Output

impl<S: Simd> SubAssign for f64x8<S>

fn sub_assign(&mut self, rhs: Self)

Subtract two vectors element-wise.

impl<S: Simd> SubAssign<f64> for f64x8<S>

fn sub_assign(&mut self, rhs: f64)

Auto Trait Implementations

impl<S> Freeze for f64x8<S> where <S as ArchTypes>::f64x8: Freeze, S: Freeze,

impl<S> RefUnwindSafe for f64x8<S> where <S as ArchTypes>::f64x8: RefUnwindSafe, S: RefUnwindSafe,

impl<S> Send for f64x8<S> where <S as ArchTypes>::f64x8: Send,

impl<S> Sync for f64x8<S> where <S as ArchTypes>::f64x8: Sync,

impl<S> Unpin for f64x8<S> where <S as ArchTypes>::f64x8: Unpin, S: Unpin,

impl<S> UnsafeUnpin for f64x8<S> where <S as ArchTypes>::f64x8: UnsafeUnpin, S: UnsafeUnpin,

impl<S> UnwindSafe for f64x8<S> where <S as ArchTypes>::f64x8: UnwindSafe, S: UnwindSafe,

Blanket Implementations

impl<F, T, S> SimdInto<T, S> for f64x8<S> where T: SimdFrom<F, S>, S: Simd,

impl<P, T> Receiver for f64x8<S> where P: Deref<Target = T> + ?Sized, T: ?Sized,

impl<T> Any for f64x8<S> where T: 'static + ?Sized,

impl<T> Borrow<T> for f64x8<S> where T: ?Sized,

impl<T> BorrowMut<T> for f64x8<S> where T: ?Sized,

impl<T> CloneToUninit for f64x8<S> where T: Clone,

impl<T> From<T> for f64x8<S>

impl<T> ToOwned for f64x8<S> where T: Clone,

impl<T, S> SimdFrom<T, S> for f64x8<S> where S: Simd,

impl<T, U> Into<U> for f64x8<S> where U: From<T>,

impl<T, U> TryFrom<U> for f64x8<S> where U: Into<T>,

impl<T, U> TryInto<U> for f64x8<S> where U: TryFrom<T>,