AUDIO
Source snapshot · 11 November 2026

API reference / ravet_native_dsp::F64x2

Struct F64x2 

pub struct F64x2 { /* private fields */ }
Expand description

Fixed lanes with selected packed arithmetic. No register-residency, alignment/ABI, compiler-expression or automatic CPU-policy promise. Arithmetic obeys actual backend instructions; scalar sqrt uses libm.

Implementations§

§

impl F64x2

pub fn new(backend: VectorBackend, lanes: [f64; 2]) -> Result<Self, VectorError>

pub fn broadcast( backend: VectorBackend, value: f64, ) -> Result<Self, VectorError>

pub fn load(backend: VectorBackend, input: &[f64]) -> Result<Self, VectorError>

pub fn store(self, output: &mut [f64]) -> Result<(), VectorError>

pub fn backend(self) -> VectorBackend

pub fn to_array(self) -> [f64; 2]

pub fn lane(self, lane: usize) -> Result<f64, VectorError>

pub fn replace_lane(self, lane: usize, value: f64) -> Result<Self, VectorError>

pub fn add(self, rhs: Self) -> Result<Self, VectorError>

pub fn subtract(self, rhs: Self) -> Result<Self, VectorError>

pub fn multiply(self, rhs: Self) -> Result<Self, VectorError>

pub fn divide(self, rhs: Self) -> Result<Self, VectorError>

pub fn multiply_add( self, multiplier: Self, addend: Self, ) -> Result<Self, VectorError>

Separate multiplication then addition; deliberately not fused.

pub fn absolute(self) -> Self

Clear sign bits, preserving all remaining NaN/subnormal payload bits.

pub fn negate(self) -> Self

Toggle sign bits without arithmetic or quieting NaNs.

pub fn sqrt(self) -> Self

pub fn equal(self, rhs: Self) -> Result<LaneMask2, VectorError>

pub fn not_equal(self, rhs: Self) -> Result<LaneMask2, VectorError>

Unordered !=: a NaN operand produces a true lane.

pub fn less(self, rhs: Self) -> Result<LaneMask2, VectorError>

pub fn less_equal(self, rhs: Self) -> Result<LaneMask2, VectorError>

pub fn greater(self, rhs: Self) -> Result<LaneMask2, VectorError>

pub fn greater_equal(self, rhs: Self) -> Result<LaneMask2, VectorError>

pub fn select( mask: LaneMask2, left: Self, right: Self, ) -> Result<Self, VectorError>

True lanes choose the left operand; selection preserves exact bits.

pub fn minimum(self, rhs: Self) -> Result<Self, VectorError>

Select left only for ordered <; otherwise right bits (ties/NaN included).

pub fn maximum(self, rhs: Self) -> Result<Self, VectorError>

Select left only for ordered >; otherwise right bits (ties/NaN included).

pub fn permute(self, indices: [usize; 2]) -> Result<Self, VectorError>

pub fn interleave(self, rhs: Self) -> Result<(Self, Self), VectorError>

Interleaved full-width pair, lower half followed by upper half.

pub fn deinterleave(self, rhs: Self) -> Result<(Self, Self), VectorError>

pub fn from_i32( backend: VectorBackend, input: [i32; 2], ) -> Result<Self, VectorError>

§

impl F64x2

pub fn sum(self) -> f64

Fixed lane0+lane1, native sample precision, without widening.

pub fn dot(self, rhs: Self) -> Result<f64, VectorError>

Unfused: lane products are rounded first, then summed as F64x2::sum (lane0+lane1).

Trait Implementations§

§

impl Clone for F64x2

§

fn clone(&self) -> F64x2

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · §

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

Performs copy-assignment from source. Read more
§

impl Copy for F64x2

§

impl Debug for F64x2

§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for F64x2

§

impl RefUnwindSafe for F64x2

§

impl Send for F64x2

§

impl Sync for F64x2

§

impl Unpin for F64x2

§

impl UnsafeUnpin for F64x2

§

impl UnwindSafe for F64x2

Blanket Implementations§

§

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

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
§

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

§

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

Performs copy-assignment from self to dest. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

fn into(self) -> U

Calls U::from(self).

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

§

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

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

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

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

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

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

§

type Error = Infallible

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

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

Performs the conversion.
§

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

§

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

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

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

Performs the conversion.