Struct f64x2

Source
#[repr(packed(1))]
pub struct f64x2(pub f64, pub f64);

Tuple Fields§

§0: f64§1: f64

Implementations§

Source§

impl f64x2

Source

pub fn new(x0: f64, x1: f64) -> Self

Create new instance

Source

pub fn splat(x: f64) -> Self

Create new instance with all lanes set to a value

Source

pub fn extract(self, idx: usize) -> f64

Get the idxth lane value

Source

pub fn replace(self, idx: usize, elem: f64) -> Self

Replace the idxth lane with new value

Source

pub fn load(array: &[f64], idx: usize) -> Self

Load instance from an array

Source

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

Instantiates a new vector with the values of the slice.

Source

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

Instantiates a new vector with the values of the slice.

Source

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

Instantiates a new vector with the values of the slice.

Source

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

Instantiates a new vector with the values of the slice.

Source

pub fn store(self, array: &mut [f64], idx: usize)

Store self to an array

Source

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

Writes the values of the vector to the slice.

Source

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

Writes the values of the vector to the slice.

Source

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

Writes the values of the vector to the slice.

Source

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

Writes the values of the vector to the slice.

Source

pub fn eq(self, rhs: Self) -> bool64x2

Compare if equal

Source

pub fn ne(self, rhs: Self) -> bool64x2

Compare if not equal

Source

pub fn lt(self, rhs: Self) -> bool64x2

Compare if less than

Source

pub fn le(self, rhs: Self) -> bool64x2

Compare if less than or equal

Source

pub fn gt(self, rhs: Self) -> bool64x2

Compare if greater than

Source

pub fn ge(self, rhs: Self) -> bool64x2

Compare if greater than or equal

Source

pub fn max(self, rhs: Self) -> Self

Get max values by lane

Source

pub fn min(self, rhs: Self) -> Self

Get min values by lane

Source§

impl f64x2

Source

pub fn sqrt(self) -> Self

Get square root

Source

pub fn approx_rsqrt(self) -> Self

Get reciprocal of square root

Source

pub fn approx_reciprocal(self) -> Self

Get reciprocal

Source§

impl f64x2

Source

pub fn to_i(self) -> i64x2

Source§

impl f64x2

Source

pub fn to_u(self) -> u64x2

Source§

impl f64x2

Source

pub fn to_f32(self) -> f32x2

Trait Implementations§

Source§

impl Add for f64x2

Add trait (+) The addittion wraps over if it is over the type limits

Source§

type Output = f64x2

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Self) -> Self

Performs the + operation. Read more
Source§

impl Clone for f64x2

Source§

fn clone(&self) -> f64x2

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for f64x2

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Div for f64x2

Div trait (/)

Source§

type Output = f64x2

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Self) -> Self

Performs the / operation. Read more
Source§

impl From<f32x2> for f64x2

Source§

fn from(source: f32x2) -> f64x2

Warning ! The conversion can be lossy

Source§

impl From<f64x2> for f32x2

Source§

fn from(source: f64x2) -> f32x2

Warning ! The conversion can be lossy

Source§

impl From<f64x2> for i64x2

Source§

fn from(source: f64x2) -> i64x2

Warning ! The conversion can be lossy

Source§

impl From<f64x2> for u64x2

Source§

fn from(source: f64x2) -> u64x2

Warning ! The conversion can be lossy

Source§

impl From<i64x2> for f64x2

Source§

fn from(source: i64x2) -> f64x2

Warning ! The conversion can be lossy

Source§

impl From<u64x2> for f64x2

Source§

fn from(source: u64x2) -> f64x2

Warning ! The conversion can be lossy

Source§

impl FromCast<f32x2> for f64x2

Source§

fn from_cast(source: f32x2) -> f64x2

Numeric cast from T to Self.
Source§

impl FromCast<f64x2> for f32x2

Source§

fn from_cast(source: f64x2) -> f32x2

Numeric cast from T to Self.
Source§

impl FromCast<f64x2> for i64x2

Source§

fn from_cast(source: f64x2) -> i64x2

Numeric cast from T to Self.
Source§

impl FromCast<f64x2> for u64x2

Source§

fn from_cast(source: f64x2) -> u64x2

Numeric cast from T to Self.
Source§

impl FromCast<i64x2> for f64x2

Source§

fn from_cast(source: i64x2) -> f64x2

Numeric cast from T to Self.
Source§

impl FromCast<u64x2> for f64x2

Source§

fn from_cast(source: u64x2) -> f64x2

Numeric cast from T to Self.
Source§

impl Mul for f64x2

Mul trait (*)

Source§

type Output = f64x2

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Self) -> Self

Performs the * operation. Read more
Source§

impl Sub for f64x2

Sub trait (-)

Source§

type Output = f64x2

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Self) -> Self

Performs the - operation. Read more
Source§

impl Copy 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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

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

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

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

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

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

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.