Type Definition packed_simd_2::f64x8[][src]

type f64x8 = Simd<[f64; 8]>;
Expand description

A 512-bit vector with 8 f64 lanes.

Implementations

impl f64x8[src]

pub const fn new(
    x0: f64,
    x1: f64,
    x2: f64,
    x3: f64,
    x4: f64,
    x5: f64,
    x6: f64,
    x7: f64
) -> Self
[src]

Creates a new instance with each vector elements initialized with the provided values.

pub const fn lanes() -> usize[src]

Returns the number of vector lanes.

pub const fn splat(value: f64) -> Self[src]

Constructs a new instance with each element initialized to value.

pub fn extract(self, index: usize) -> f64[src]

Extracts the value at index.

Panics

If index >= Self::lanes().

pub unsafe fn extract_unchecked(self, index: usize) -> f64[src]

Extracts the value at index.

Safety

If index >= Self::lanes() the behavior is undefined.

#[must_use = "replace does not modify the original value - \ it returns a new vector with the value at `index` \ replaced by `new_value`d"]
pub fn replace(self, index: usize, new_value: f64) -> Self
[src]

Returns a new vector where the value at index is replaced by new_value.

Panics

If index >= Self::lanes().

#[must_use = "replace_unchecked does not modify the original value - \ it returns a new vector with the value at `index` \ replaced by `new_value`d"]
pub unsafe fn replace_unchecked(self, index: usize, new_value: f64) -> Self
[src]

Returns a new vector where the value at index is replaced by new_value.

Safety

If index >= Self::lanes() the behavior is undefined.

impl f64x8[src]

pub fn min(self, x: Self) -> Self[src]

Minimum of two vectors.

Returns a new vector containing the minimum value of each of the input vector lanes.

pub fn max(self, x: Self) -> Self[src]

Maximum of two vectors.

Returns a new vector containing the maximum value of each of the input vector lanes.

impl f64x8[src]

pub fn sum(self) -> f64[src]

Horizontal sum of the vector elements.

The intrinsic performs a tree-reduction of the vector elements. That is, for an 8 element vector:

((x0 + x1) + (x2 + x3)) + ((x4 + x5) + (x6 + x7))

If one of the vector element is NaN the reduction returns NaN. The resulting NaN is not required to be equal to any of the NaNs in the vector.

pub fn product(self) -> f64[src]

Horizontal product of the vector elements.

The intrinsic performs a tree-reduction of the vector elements. That is, for an 8 element vector:

((x0 * x1) * (x2 * x3)) * ((x4 * x5) * (x6 * x7))

If one of the vector element is NaN the reduction returns NaN. The resulting NaN is not required to be equal to any of the NaNs in the vector.

impl f64x8[src]

pub fn max_element(self) -> f64[src]

Largest vector element value.

pub fn min_element(self) -> f64[src]

Smallest vector element value.

impl f64x8[src]

pub fn from_slice_aligned(slice: &[f64]) -> Self[src]

Instantiates a new vector with the values of the slice.

Panics

If slice.len() < Self::lanes() or &slice[0] is not aligned to an align_of::<Self>() boundary.

pub fn from_slice_unaligned(slice: &[f64]) -> Self[src]

Instantiates a new vector with the values of the slice.

Panics

If slice.len() < Self::lanes().

pub unsafe fn from_slice_aligned_unchecked(slice: &[f64]) -> Self[src]

Instantiates a new vector with the values of the slice.

Safety

If slice.len() < Self::lanes() or &slice[0] is not aligned to an align_of::<Self>() boundary, the behavior is undefined.

pub unsafe fn from_slice_unaligned_unchecked(slice: &[f64]) -> Self[src]

Instantiates a new vector with the values of the slice.

Safety

If slice.len() < Self::lanes() the behavior is undefined.

impl f64x8[src]

pub fn write_to_slice_aligned(self, slice: &mut [f64])[src]

Writes the values of the vector to the slice.

Panics

If slice.len() < Self::lanes() or &slice[0] is not aligned to an align_of::<Self>() boundary.

pub fn write_to_slice_unaligned(self, slice: &mut [f64])[src]

Writes the values of the vector to the slice.

Panics

If slice.len() < Self::lanes().

pub unsafe fn write_to_slice_aligned_unchecked(self, slice: &mut [f64])[src]

Writes the values of the vector to the slice.

Safety

If slice.len() < Self::lanes() or &slice[0] is not aligned to an align_of::<Self>() boundary, the behavior is undefined.

pub unsafe fn write_to_slice_unaligned_unchecked(self, slice: &mut [f64])[src]

Writes the values of the vector to the slice.

Safety

If slice.len() < Self::lanes() the behavior is undefined.

impl f64x8[src]

pub fn shuffle1_dyn<I>(self, indices: I) -> Self where
    Self: Shuffle1Dyn<Indices = I>, 
[src]

Shuffle vector elements according to indices.

impl f64x8[src]

pub const EPSILON: f64x8[src]

Machine epsilon value.

pub const MIN: f64x8[src]

Smallest finite value.

pub const MIN_POSITIVE: f64x8[src]

Smallest positive normal value.

pub const MAX: f64x8[src]

Largest finite value.

pub const NAN: f64x8[src]

Not a Number (NaN).

pub const INFINITY: f64x8[src]

Infinity (∞).

pub const NEG_INFINITY: f64x8[src]

Negative infinity (-∞).

pub const PI: f64x8[src]

Archimedes’ constant (π)

pub const FRAC_PI_2: f64x8[src]

π/2

pub const FRAC_PI_3: f64x8[src]

π/3

pub const FRAC_PI_4: f64x8[src]

π/4

pub const FRAC_PI_6: f64x8[src]

π/6

pub const FRAC_PI_8: f64x8[src]

π/8

pub const FRAC_1_PI: f64x8[src]

1/π

pub const FRAC_2_PI: f64x8[src]

2/π

pub const FRAC_2_SQRT_PI: f64x8[src]

2/sqrt(π)

pub const SQRT_2: f64x8[src]

sqrt(2)

pub const FRAC_1_SQRT_2: f64x8[src]

1/sqrt(2)

pub const E: f64x8[src]

Euler’s number (e)

pub const LOG2_E: f64x8[src]

log2(e)

pub const LOG10_E: f64x8[src]

log10(e)

pub const LN_2: f64x8[src]

ln(2)

pub const LN_10: f64x8[src]

ln(10)

impl f64x8[src]

pub fn is_nan(self) -> m64x8[src]

pub fn is_infinite(self) -> m64x8[src]

pub fn is_finite(self) -> m64x8[src]

impl f64x8[src]

pub fn abs(self) -> Self[src]

Absolute value.

impl f64x8[src]

pub fn cos(self) -> Self[src]

Cosine.

pub fn cos_pi(self) -> Self[src]

Cosine of self * PI.

impl f64x8[src]

pub fn exp(self) -> Self[src]

Returns the exponential function of self: e^(self).

impl f64x8[src]

pub fn ln(self) -> Self[src]

Returns the natural logarithm of self.

impl f64x8[src]

pub fn mul_add(self, y: Self, z: Self) -> Self[src]

Fused multiply add: self * y + z

impl f64x8[src]

pub fn mul_adde(self, y: Self, z: Self) -> Self[src]

Fused multiply add estimate: ~= self * y + z

While fused multiply-add (fma) has infinite precision, mul_adde has at worst the same precision of a multiply followed by an add. This might be more efficient on architectures that do not have an fma instruction.

impl f64x8[src]

pub fn powf(self, x: Self) -> Self[src]

Raises self number to the floating point power of x.

impl f64x8[src]

pub fn recpre(self) -> Self[src]

Reciprocal estimate: ~= 1. / self.

FIXME: The precision of the estimate is currently unspecified.

impl f64x8[src]

pub fn rsqrte(self) -> Self[src]

Reciprocal square-root estimate: ~= 1. / self.sqrt().

FIXME: The precision of the estimate is currently unspecified.

impl f64x8[src]

pub fn sin(self) -> Self[src]

Sine.

pub fn sin_pi(self) -> Self[src]

Sine of self * PI.

pub fn sin_cos_pi(self) -> (Self, Self)[src]

Sine and cosine of self * PI.

impl f64x8[src]

pub fn sqrt(self) -> Self[src]

impl f64x8[src]

pub fn sqrte(self) -> Self[src]

Square-root estimate.

FIXME: The precision of the estimate is currently unspecified.

impl f64x8[src]

pub fn tanh(self) -> Self[src]

Tanh.

impl f64x8[src]

pub fn eq(self, other: Self) -> m64x8[src]

Lane-wise equality comparison.

pub fn ne(self, other: Self) -> m64x8[src]

Lane-wise inequality comparison.

pub fn lt(self, other: Self) -> m64x8[src]

Lane-wise less-than comparison.

pub fn le(self, other: Self) -> m64x8[src]

Lane-wise less-than-or-equals comparison.

pub fn gt(self, other: Self) -> m64x8[src]

Lane-wise greater-than comparison.

pub fn ge(self, other: Self) -> m64x8[src]

Lane-wise greater-than-or-equals comparison.

Trait Implementations

impl Add<Simd<[f64; 8]>> for f64x8[src]

type Output = Self

The resulting type after applying the + operator.

fn add(self, other: Self) -> Self[src]

Performs the + operation. Read more

impl Add<f64> for f64x8[src]

type Output = Self

The resulting type after applying the + operator.

fn add(self, other: f64) -> Self[src]

Performs the + operation. Read more

impl AddAssign<Simd<[f64; 8]>> for f64x8[src]

fn add_assign(&mut self, other: Self)[src]

Performs the += operation. Read more

impl AddAssign<f64> for f64x8[src]

fn add_assign(&mut self, other: f64)[src]

Performs the += operation. Read more

impl Debug for f64x8[src]

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

Formats the value using the given formatter. Read more

impl Default for f64x8[src]

fn default() -> Self[src]

Returns the “default value” for a type. Read more

impl Div<Simd<[f64; 8]>> for f64x8[src]

type Output = Self

The resulting type after applying the / operator.

fn div(self, other: Self) -> Self[src]

Performs the / operation. Read more

impl Div<f64> for f64x8[src]

type Output = Self

The resulting type after applying the / operator.

fn div(self, other: f64) -> Self[src]

Performs the / operation. Read more

impl DivAssign<Simd<[f64; 8]>> for f64x8[src]

fn div_assign(&mut self, other: Self)[src]

Performs the /= operation. Read more

impl DivAssign<f64> for f64x8[src]

fn div_assign(&mut self, other: f64)[src]

Performs the /= operation. Read more

impl From<[f64; 8]> for f64x8[src]

fn from(array: [f64; 8]) -> Self[src]

Performs the conversion.

impl From<Simd<[f32; 8]>> for f64x8[src]

fn from(source: f32x8) -> Self[src]

Performs the conversion.

impl From<Simd<[i16; 8]>> for f64x8[src]

fn from(source: i16x8) -> Self[src]

Performs the conversion.

impl From<Simd<[i32; 8]>> for f64x8[src]

fn from(source: i32x8) -> Self[src]

Performs the conversion.

impl From<Simd<[i8; 8]>> for f64x8[src]

fn from(source: i8x8) -> Self[src]

Performs the conversion.

impl From<Simd<[u16; 8]>> for f64x8[src]

fn from(source: u16x8) -> Self[src]

Performs the conversion.

impl From<Simd<[u32; 8]>> for f64x8[src]

fn from(source: u32x8) -> Self[src]

Performs the conversion.

impl From<Simd<[u8; 8]>> for f64x8[src]

fn from(source: u8x8) -> Self[src]

Performs the conversion.

impl FromBits<Simd<[f32; 16]>> for f64x8[src]

fn from_bits(x: f32x16) -> Self[src]

Safe lossless bitwise transmute from T to Self.

impl FromBits<Simd<[i128; 4]>> for f64x8[src]

fn from_bits(x: i128x4) -> Self[src]

Safe lossless bitwise transmute from T to Self.

impl FromBits<Simd<[i16; 32]>> for f64x8[src]

fn from_bits(x: i16x32) -> Self[src]

Safe lossless bitwise transmute from T to Self.

impl FromBits<Simd<[i32; 16]>> for f64x8[src]

fn from_bits(x: i32x16) -> Self[src]

Safe lossless bitwise transmute from T to Self.

impl FromBits<Simd<[i64; 8]>> for f64x8[src]

fn from_bits(x: i64x8) -> Self[src]

Safe lossless bitwise transmute from T to Self.

impl FromBits<Simd<[i8; 64]>> for f64x8[src]

fn from_bits(x: i8x64) -> Self[src]

Safe lossless bitwise transmute from T to Self.

impl FromBits<Simd<[m128; 4]>> for f64x8[src]

fn from_bits(x: m128x4) -> Self[src]

Safe lossless bitwise transmute from T to Self.

impl FromBits<Simd<[m16; 32]>> for f64x8[src]

fn from_bits(x: m16x32) -> Self[src]

Safe lossless bitwise transmute from T to Self.

impl FromBits<Simd<[m32; 16]>> for f64x8[src]

fn from_bits(x: m32x16) -> Self[src]

Safe lossless bitwise transmute from T to Self.

impl FromBits<Simd<[m64; 8]>> for f64x8[src]

fn from_bits(x: m64x8) -> Self[src]

Safe lossless bitwise transmute from T to Self.

impl FromBits<Simd<[m8; 64]>> for f64x8[src]

fn from_bits(x: m8x64) -> Self[src]

Safe lossless bitwise transmute from T to Self.

impl FromBits<Simd<[u128; 4]>> for f64x8[src]

fn from_bits(x: u128x4) -> Self[src]

Safe lossless bitwise transmute from T to Self.

impl FromBits<Simd<[u16; 32]>> for f64x8[src]

fn from_bits(x: u16x32) -> Self[src]

Safe lossless bitwise transmute from T to Self.

impl FromBits<Simd<[u32; 16]>> for f64x8[src]

fn from_bits(x: u32x16) -> Self[src]

Safe lossless bitwise transmute from T to Self.

impl FromBits<Simd<[u64; 8]>> for f64x8[src]

fn from_bits(x: u64x8) -> Self[src]

Safe lossless bitwise transmute from T to Self.

impl FromBits<Simd<[u8; 64]>> for f64x8[src]

fn from_bits(x: u8x64) -> Self[src]

Safe lossless bitwise transmute from T to Self.

impl FromCast<Simd<[f32; 8]>> for f64x8[src]

fn from_cast(x: f32x8) -> Self[src]

Numeric cast from T to Self.

impl FromCast<Simd<[i16; 8]>> for f64x8[src]

fn from_cast(x: i16x8) -> Self[src]

Numeric cast from T to Self.

impl FromCast<Simd<[i32; 8]>> for f64x8[src]

fn from_cast(x: i32x8) -> Self[src]

Numeric cast from T to Self.

impl FromCast<Simd<[i64; 8]>> for f64x8[src]

fn from_cast(x: i64x8) -> Self[src]

Numeric cast from T to Self.

impl FromCast<Simd<[i8; 8]>> for f64x8[src]

fn from_cast(x: i8x8) -> Self[src]

Numeric cast from T to Self.

impl FromCast<Simd<[isize; 8]>> for f64x8[src]

fn from_cast(x: isizex8) -> Self[src]

Numeric cast from T to Self.

impl FromCast<Simd<[m16; 8]>> for f64x8[src]

fn from_cast(x: m16x8) -> Self[src]

Numeric cast from T to Self.

impl FromCast<Simd<[m32; 8]>> for f64x8[src]

fn from_cast(x: m32x8) -> Self[src]

Numeric cast from T to Self.

impl FromCast<Simd<[m64; 8]>> for f64x8[src]

fn from_cast(x: m64x8) -> Self[src]

Numeric cast from T to Self.

impl FromCast<Simd<[m8; 8]>> for f64x8[src]

fn from_cast(x: m8x8) -> Self[src]

Numeric cast from T to Self.

impl FromCast<Simd<[msize; 8]>> for f64x8[src]

fn from_cast(x: msizex8) -> Self[src]

Numeric cast from T to Self.

impl FromCast<Simd<[u16; 8]>> for f64x8[src]

fn from_cast(x: u16x8) -> Self[src]

Numeric cast from T to Self.

impl FromCast<Simd<[u32; 8]>> for f64x8[src]

fn from_cast(x: u32x8) -> Self[src]

Numeric cast from T to Self.

impl FromCast<Simd<[u64; 8]>> for f64x8[src]

fn from_cast(x: u64x8) -> Self[src]

Numeric cast from T to Self.

impl FromCast<Simd<[u8; 8]>> for f64x8[src]

fn from_cast(x: u8x8) -> Self[src]

Numeric cast from T to Self.

impl FromCast<Simd<[usize; 8]>> for f64x8[src]

fn from_cast(x: usizex8) -> Self[src]

Numeric cast from T to Self.

impl Mul<Simd<[f64; 8]>> for f64x8[src]

type Output = Self

The resulting type after applying the * operator.

fn mul(self, other: Self) -> Self[src]

Performs the * operation. Read more

impl Mul<f64> for f64x8[src]

type Output = Self

The resulting type after applying the * operator.

fn mul(self, other: f64) -> Self[src]

Performs the * operation. Read more

impl MulAssign<Simd<[f64; 8]>> for f64x8[src]

fn mul_assign(&mut self, other: Self)[src]

Performs the *= operation. Read more

impl MulAssign<f64> for f64x8[src]

fn mul_assign(&mut self, other: f64)[src]

Performs the *= operation. Read more

impl Neg for f64x8[src]

type Output = Self

The resulting type after applying the - operator.

fn neg(self) -> Self[src]

Performs the unary - operation. Read more

impl PartialEq<Simd<[f64; 8]>> for f64x8[src]

fn eq(&self, other: &Self) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Self) -> bool[src]

This method tests for !=.

impl<'a> Product<&'a Simd<[f64; 8]>> for f64x8[src]

fn product<I: Iterator<Item = &'a f64x8>>(iter: I) -> f64x8[src]

Method which takes an iterator and generates Self from the elements by multiplying the items. Read more

impl Product<Simd<[f64; 8]>> for f64x8[src]

fn product<I: Iterator<Item = f64x8>>(iter: I) -> f64x8[src]

Method which takes an iterator and generates Self from the elements by multiplying the items. Read more

impl Rem<Simd<[f64; 8]>> for f64x8[src]

type Output = Self

The resulting type after applying the % operator.

fn rem(self, other: Self) -> Self[src]

Performs the % operation. Read more

impl Rem<f64> for f64x8[src]

type Output = Self

The resulting type after applying the % operator.

fn rem(self, other: f64) -> Self[src]

Performs the % operation. Read more

impl RemAssign<Simd<[f64; 8]>> for f64x8[src]

fn rem_assign(&mut self, other: Self)[src]

Performs the %= operation. Read more

impl RemAssign<f64> for f64x8[src]

fn rem_assign(&mut self, other: f64)[src]

Performs the %= operation. Read more

impl Simd for f64x8[src]

type Element = f64

Element type of the SIMD vector

const LANES: usize[src]

The number of elements in the SIMD vector.

type LanesType = [u32; 8]

The type: [u32; Self::N].

impl Sub<Simd<[f64; 8]>> for f64x8[src]

type Output = Self

The resulting type after applying the - operator.

fn sub(self, other: Self) -> Self[src]

Performs the - operation. Read more

impl Sub<f64> for f64x8[src]

type Output = Self

The resulting type after applying the - operator.

fn sub(self, other: f64) -> Self[src]

Performs the - operation. Read more

impl SubAssign<Simd<[f64; 8]>> for f64x8[src]

fn sub_assign(&mut self, other: Self)[src]

Performs the -= operation. Read more

impl SubAssign<f64> for f64x8[src]

fn sub_assign(&mut self, other: f64)[src]

Performs the -= operation. Read more

impl<'a> Sum<&'a Simd<[f64; 8]>> for f64x8[src]

fn sum<I: Iterator<Item = &'a f64x8>>(iter: I) -> f64x8[src]

Method which takes an iterator and generates Self from the elements by “summing up” the items. Read more

impl Sum<Simd<[f64; 8]>> for f64x8[src]

fn sum<I: Iterator<Item = f64x8>>(iter: I) -> f64x8[src]

Method which takes an iterator and generates Self from the elements by “summing up” the items. Read more