pub struct SimdFor<E: Entity, S: Simd> {
    pub simd: S,
    /* private fields */
}

Fields§

§simd: S

Implementations§

source§

impl<E: ComplexField, S: Simd> SimdFor<E, S>

source

pub fn new(simd: S) -> Self

source

pub fn as_simd( self, slice: SliceGroup<'_, E> ) -> (SliceGroup<'_, E, SimdUnitFor<E, S>>, SliceGroup<'_, E>)

source

pub fn align_offset(self, slice: SliceGroup<'_, E>) -> Offset<E::SimdMask<S>>

source

pub fn align_offset_ptr( self, ptr: GroupFor<E, *const E::Unit>, len: usize ) -> Offset<E::SimdMask<S>>

source

pub fn as_simd_mut( self, slice: SliceGroupMut<'_, E> ) -> (SliceGroupMut<'_, E, SimdUnitFor<E, S>>, SliceGroupMut<'_, E>)

source

pub fn as_aligned_simd( self, slice: SliceGroup<'_, E>, offset: Offset<E::SimdMask<S>> ) -> (Prefix<'_, E, S>, SliceGroup<'_, E, SimdUnitFor<E, S>>, Suffix<'_, E, S>)

source

pub fn as_aligned_simd_mut( self, slice: SliceGroupMut<'_, E>, offset: Offset<E::SimdMask<S>> ) -> (PrefixMut<'_, E, S>, SliceGroupMut<'_, E, SimdUnitFor<E, S>>, SuffixMut<'_, E, S>)

source

pub fn splat(self, value: E) -> SimdGroupFor<E, S>

source

pub fn scalar_mul(self, lhs: E, rhs: E) -> E

source

pub fn scalar_conj_mul(self, lhs: E, rhs: E) -> E

source

pub fn scalar_mul_add_e(self, lhs: E, rhs: E, acc: E) -> E

source

pub fn scalar_conj_mul_add_e(self, lhs: E, rhs: E, acc: E) -> E

source

pub fn scalar_conditional_conj_mul<C: ConjTy>( self, conj: C, lhs: E, rhs: E ) -> E

source

pub fn scalar_conditional_conj_mul_add_e<C: ConjTy>( self, conj: C, lhs: E, rhs: E, acc: E ) -> E

source

pub fn add( self, lhs: SimdGroupFor<E, S>, rhs: SimdGroupFor<E, S> ) -> SimdGroupFor<E, S>

source

pub fn sub( self, lhs: SimdGroupFor<E, S>, rhs: SimdGroupFor<E, S> ) -> SimdGroupFor<E, S>

source

pub fn neg(self, a: SimdGroupFor<E, S>) -> SimdGroupFor<E, S>

source

pub fn scale_real( self, lhs: SimdGroupFor<E::Real, S>, rhs: SimdGroupFor<E, S> ) -> SimdGroupFor<E, S>

source

pub fn mul( self, lhs: SimdGroupFor<E, S>, rhs: SimdGroupFor<E, S> ) -> SimdGroupFor<E, S>

source

pub fn conj_mul( self, lhs: SimdGroupFor<E, S>, rhs: SimdGroupFor<E, S> ) -> SimdGroupFor<E, S>

source

pub fn conditional_conj_mul<C: ConjTy>( self, conj: C, lhs: SimdGroupFor<E, S>, rhs: SimdGroupFor<E, S> ) -> SimdGroupFor<E, S>

source

pub fn mul_add_e( self, lhs: SimdGroupFor<E, S>, rhs: SimdGroupFor<E, S>, acc: SimdGroupFor<E, S> ) -> SimdGroupFor<E, S>

source

pub fn conj_mul_add_e( self, lhs: SimdGroupFor<E, S>, rhs: SimdGroupFor<E, S>, acc: SimdGroupFor<E, S> ) -> SimdGroupFor<E, S>

source

pub fn conditional_conj_mul_add_e<C: ConjTy>( self, conj: C, lhs: SimdGroupFor<E, S>, rhs: SimdGroupFor<E, S>, acc: SimdGroupFor<E, S> ) -> SimdGroupFor<E, S>

source

pub fn abs2_add_e( self, values: SimdGroupFor<E, S>, acc: SimdGroupFor<E::Real, S> ) -> SimdGroupFor<E::Real, S>

source

pub fn abs2(self, values: SimdGroupFor<E, S>) -> SimdGroupFor<E::Real, S>

source

pub fn score(self, values: SimdGroupFor<E, S>) -> SimdGroupFor<E::Real, S>

source

pub fn reduce_add(self, values: SimdGroupFor<E, S>) -> E

source

pub fn rotate_left( self, values: SimdGroupFor<E, S>, amount: usize ) -> SimdGroupFor<E, S>

source§

impl<E: RealField, S: Simd> SimdFor<E, S>

source

pub fn abs(self, values: SimdGroupFor<E, S>) -> SimdGroupFor<E::Real, S>

source

pub fn less_than( self, a: SimdGroupFor<E, S>, b: SimdGroupFor<E, S> ) -> SimdMaskFor<E, S>

source

pub fn less_than_or_equal( self, a: SimdGroupFor<E, S>, b: SimdGroupFor<E, S> ) -> SimdMaskFor<E, S>

source

pub fn greater_than( self, a: SimdGroupFor<E, S>, b: SimdGroupFor<E, S> ) -> SimdMaskFor<E, S>

source

pub fn greater_than_or_equal( self, a: SimdGroupFor<E, S>, b: SimdGroupFor<E, S> ) -> SimdMaskFor<E, S>

source

pub fn select( self, mask: SimdMaskFor<E, S>, if_true: SimdGroupFor<E, S>, if_false: SimdGroupFor<E, S> ) -> SimdGroupFor<E, S>

source

pub fn index_select( self, mask: SimdMaskFor<E, S>, if_true: SimdIndexFor<E, S>, if_false: SimdIndexFor<E, S> ) -> SimdIndexFor<E, S>

source

pub fn index_seq(self) -> SimdIndexFor<E, S>

source

pub fn index_splat(self, value: IndexFor<E>) -> SimdIndexFor<E, S>

source

pub fn index_add( self, a: SimdIndexFor<E, S>, b: SimdIndexFor<E, S> ) -> SimdIndexFor<E, S>

Trait Implementations§

source§

impl<E: Entity, S: Simd> Clone for SimdFor<E, S>

source§

fn clone(&self) -> Self

Returns a copy 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<E: Entity, S: Simd> Copy for SimdFor<E, S>

Auto Trait Implementations§

§

impl<E, S> RefUnwindSafe for SimdFor<E, S>where E: RefUnwindSafe, S: RefUnwindSafe,

§

impl<E, S> Send for SimdFor<E, S>

§

impl<E, S> Sync for SimdFor<E, S>

§

impl<E, S> Unpin for SimdFor<E, S>where E: Unpin, S: Unpin,

§

impl<E, S> UnwindSafe for SimdFor<E, S>where E: UnwindSafe, S: UnwindSafe,

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. 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 Twhere 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.

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

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

Initializes a with the given initializer. Read more
§

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

Dereferences the given pointer. Read more
§

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

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

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

impl<T> ToOwned for Twhere T: Clone,

§

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 Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.