SimdCtx

Struct SimdCtx 

Source
pub struct SimdCtx<'N, T: ComplexField, S: Simd> {
    pub ctx: T::SimdCtx<S>,
    pub len: Dim<'N>,
    /* private fields */
}

Fields§

§ctx: T::SimdCtx<S>§len: Dim<'N>

Implementations§

Source§

impl<'N, T: ComplexField, S: Simd> SimdCtx<'N, T, S>

Source

pub fn new(simd: T::SimdCtx<S>, len: Dim<'N>) -> Self

Source

pub fn new_align(simd: T::SimdCtx<S>, len: Dim<'N>, align_offset: usize) -> Self

Source

pub fn offset(&self) -> usize

Source

pub fn new_force_mask(simd: T::SimdCtx<S>, len: Dim<'N>) -> Self

Source

pub fn read<I: SimdIndex<'N, T, S>>( &self, slice: ColRef<'_, T, Dim<'N>, ContiguousFwd>, index: I, ) -> T::SimdVec<S>

Source

pub fn write<I: SimdIndex<'N, T, S>>( &self, slice: ColMut<'_, T, Dim<'N>, ContiguousFwd>, index: I, value: T::SimdVec<S>, )

Source

pub fn head_mask(&self) -> T::SimdMask<S>

Source

pub fn tail_mask(&self) -> T::SimdMask<S>

Source

pub fn indices( &self, ) -> (Option<SimdHead<'N, T, S>>, impl Clone + ExactSizeIterator + DoubleEndedIterator<Item = SimdBody<'N, T, S>>, Option<SimdTail<'N, T, S>>)

Source

pub fn batch_indices<const BATCH: usize>( &self, ) -> (Option<SimdHead<'N, T, S>>, impl Clone + ExactSizeIterator + DoubleEndedIterator<Item = [SimdBody<'N, T, S>; BATCH]>, impl Clone + ExactSizeIterator + DoubleEndedIterator<Item = SimdBody<'N, T, S>>, Option<SimdTail<'N, T, S>>)

Methods from Deref<Target = SimdCtx<T, S>>§

Source

pub fn zero(&self) -> <T as ComplexField>::SimdVec<S>

Source

pub fn splat(&self, value: &T) -> <T as ComplexField>::SimdVec<S>

Source

pub fn splat_real( &self, value: &<T as ComplexField>::Real, ) -> RealReg<<T as ComplexField>::SimdVec<S>>

Source

pub fn add( &self, lhs: <T as ComplexField>::SimdVec<S>, rhs: <T as ComplexField>::SimdVec<S>, ) -> <T as ComplexField>::SimdVec<S>

Source

pub fn sub( &self, lhs: <T as ComplexField>::SimdVec<S>, rhs: <T as ComplexField>::SimdVec<S>, ) -> <T as ComplexField>::SimdVec<S>

Source

pub fn neg( &self, value: <T as ComplexField>::SimdVec<S>, ) -> <T as ComplexField>::SimdVec<S>

Source

pub fn conj( &self, value: <T as ComplexField>::SimdVec<S>, ) -> <T as ComplexField>::SimdVec<S>

Source

pub fn abs1( &self, value: <T as ComplexField>::SimdVec<S>, ) -> RealReg<<T as ComplexField>::SimdVec<S>>

Source

pub fn abs_max( &self, value: <T as ComplexField>::SimdVec<S>, ) -> RealReg<<T as ComplexField>::SimdVec<S>>

Source

pub fn mul_real( &self, lhs: <T as ComplexField>::SimdVec<S>, rhs: RealReg<<T as ComplexField>::SimdVec<S>>, ) -> <T as ComplexField>::SimdVec<S>

Source

pub fn mul_pow2( &self, lhs: <T as ComplexField>::SimdVec<S>, rhs: RealReg<<T as ComplexField>::SimdVec<S>>, ) -> <T as ComplexField>::SimdVec<S>

Source

pub fn mul( &self, lhs: <T as ComplexField>::SimdVec<S>, rhs: <T as ComplexField>::SimdVec<S>, ) -> <T as ComplexField>::SimdVec<S>

Source

pub fn conj_mul( &self, lhs: <T as ComplexField>::SimdVec<S>, rhs: <T as ComplexField>::SimdVec<S>, ) -> <T as ComplexField>::SimdVec<S>

Source

pub fn mul_add( &self, lhs: <T as ComplexField>::SimdVec<S>, rhs: <T as ComplexField>::SimdVec<S>, acc: <T as ComplexField>::SimdVec<S>, ) -> <T as ComplexField>::SimdVec<S>

Source

pub fn conj_mul_add( &self, lhs: <T as ComplexField>::SimdVec<S>, rhs: <T as ComplexField>::SimdVec<S>, acc: <T as ComplexField>::SimdVec<S>, ) -> <T as ComplexField>::SimdVec<S>

Source

pub fn abs2( &self, value: <T as ComplexField>::SimdVec<S>, ) -> RealReg<<T as ComplexField>::SimdVec<S>>

Source

pub fn abs2_add( &self, value: <T as ComplexField>::SimdVec<S>, acc: RealReg<<T as ComplexField>::SimdVec<S>>, ) -> RealReg<<T as ComplexField>::SimdVec<S>>

Source

pub fn reduce_sum(&self, value: <T as ComplexField>::SimdVec<S>) -> T

Source

pub fn reduce_max(&self, value: RealReg<<T as ComplexField>::SimdVec<S>>) -> T

Source

pub fn reduce_sum_real( &self, value: RealReg<<T as ComplexField>::SimdVec<S>>, ) -> <<T as Conjugate>::Canonical as ComplexField>::Real

Source

pub fn reduce_max_real( &self, value: RealReg<<T as ComplexField>::SimdVec<S>>, ) -> <<T as Conjugate>::Canonical as ComplexField>::Real

Source

pub fn max( &self, lhs: RealReg<<T as ComplexField>::SimdVec<S>>, rhs: RealReg<<T as ComplexField>::SimdVec<S>>, ) -> RealReg<<T as ComplexField>::SimdVec<S>>

Source

pub fn eq( &self, lhs: <T as ComplexField>::SimdVec<S>, rhs: <T as ComplexField>::SimdVec<S>, ) -> <T as ComplexField>::SimdMask<S>

Source

pub fn lt( &self, lhs: RealReg<<T as ComplexField>::SimdVec<S>>, rhs: RealReg<<T as ComplexField>::SimdVec<S>>, ) -> <T as ComplexField>::SimdMask<S>

Source

pub fn gt( &self, lhs: RealReg<<T as ComplexField>::SimdVec<S>>, rhs: RealReg<<T as ComplexField>::SimdVec<S>>, ) -> <T as ComplexField>::SimdMask<S>

Source

pub fn le( &self, lhs: RealReg<<T as ComplexField>::SimdVec<S>>, rhs: RealReg<<T as ComplexField>::SimdVec<S>>, ) -> <T as ComplexField>::SimdMask<S>

Source

pub fn ge( &self, lhs: RealReg<<T as ComplexField>::SimdVec<S>>, rhs: RealReg<<T as ComplexField>::SimdVec<S>>, ) -> <T as ComplexField>::SimdMask<S>

Source

pub fn select( &self, mask: <T as ComplexField>::SimdMask<S>, lhs: <T as ComplexField>::SimdVec<S>, rhs: <T as ComplexField>::SimdVec<S>, ) -> <T as ComplexField>::SimdVec<S>

Source

pub fn iselect( &self, mask: <T as ComplexField>::SimdMask<S>, lhs: <T as ComplexField>::SimdIndex<S>, rhs: <T as ComplexField>::SimdIndex<S>, ) -> <T as ComplexField>::SimdIndex<S>

Source

pub fn isplat( &self, value: <T as ComplexField>::Index, ) -> <T as ComplexField>::SimdIndex<S>

Source

pub fn iadd( &self, lhs: <T as ComplexField>::SimdIndex<S>, rhs: <T as ComplexField>::SimdIndex<S>, ) -> <T as ComplexField>::SimdIndex<S>

Source

pub fn or_mask( &self, lhs: <T as ComplexField>::SimdMask<S>, rhs: <T as ComplexField>::SimdMask<S>, ) -> <T as ComplexField>::SimdMask<S>

Source

pub fn and_mask( &self, lhs: <T as ComplexField>::SimdMask<S>, rhs: <T as ComplexField>::SimdMask<S>, ) -> <T as ComplexField>::SimdMask<S>

Source

pub fn not_mask( &self, mask: <T as ComplexField>::SimdMask<S>, ) -> <T as ComplexField>::SimdMask<S>

Source

pub fn first_true_mask(&self, value: <T as ComplexField>::SimdMask<S>) -> usize

Source

pub unsafe fn mask_load( &self, mask: <T as ComplexField>::SimdMemMask<S>, ptr: *const <T as ComplexField>::SimdVec<S>, ) -> <T as ComplexField>::SimdVec<S>

Source

pub unsafe fn mask_store( &self, mask: <T as ComplexField>::SimdMemMask<S>, ptr: *mut <T as ComplexField>::SimdVec<S>, value: <T as ComplexField>::SimdVec<S>, )

Source

pub fn load( &self, ptr: &<T as ComplexField>::SimdVec<S>, ) -> <T as ComplexField>::SimdVec<S>

Source

pub fn store( &self, ptr: &mut <T as ComplexField>::SimdVec<S>, value: <T as ComplexField>::SimdVec<S>, )

Trait Implementations§

Source§

impl<T: ComplexField, S: Simd> Clone for SimdCtx<'_, T, S>

Source§

fn clone(&self) -> Self

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<'N, T: ComplexField, S: Simd> Debug for SimdCtx<'N, T, S>

Source§

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

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

impl<T: ComplexField, S: Simd> Deref for SimdCtx<'_, T, S>

Source§

type Target = SimdCtx<T, S>

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl<T: ComplexField, S: Simd> Copy for SimdCtx<'_, T, S>

Auto Trait Implementations§

§

impl<'N, T, S> Freeze for SimdCtx<'N, T, S>

§

impl<'N, T, S> RefUnwindSafe for SimdCtx<'N, T, S>

§

impl<'N, T, S> Send for SimdCtx<'N, T, S>
where <T as ComplexField>::SimdCtx<S>: Send, <T as ComplexField>::SimdMask<S>: Send, <T as ComplexField>::SimdMemMask<S>: Send,

§

impl<'N, T, S> Sync for SimdCtx<'N, T, S>
where <T as ComplexField>::SimdCtx<S>: Sync, <T as ComplexField>::SimdMask<S>: Sync, <T as ComplexField>::SimdMemMask<S>: Sync,

§

impl<'N, T, S> Unpin for SimdCtx<'N, T, S>
where <T as ComplexField>::SimdCtx<S>: Unpin, <T as ComplexField>::SimdMask<S>: Unpin, <T as ComplexField>::SimdMemMask<S>: Unpin,

§

impl<'N, T, S> UnwindSafe for SimdCtx<'N, T, S>

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> ByRef<T> for T

Source§

fn by_ref(&self) -> &T

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> DistributionExt for T
where T: ?Sized,

Source§

fn rand<T>(&self, rng: &mut (impl ?Sized + Rng)) -> T
where Self: Distribution<T>,

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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

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

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V