Skip to main content

DynamicSharedAccumulator

Struct DynamicSharedAccumulator 

Source
pub struct DynamicSharedAccumulator<P: ReducePrecision> {
    pub elements: SharedAccumulatorKind<Vector<P::EA, P::SI>>,
    pub args: SharedAccumulatorKind<Vector<u32, P::SI>>,
}

Fields§

§elements: SharedAccumulatorKind<Vector<P::EA, P::SI>>§args: SharedAccumulatorKind<Vector<u32, P::SI>>

Trait Implementations§

Source§

impl<P: ReducePrecision> RudaType for DynamicSharedAccumulator<P>

Source§

impl<P: ReducePrecision, I: ReduceInstruction<P>> SharedAccumulator<P, I> for DynamicSharedAccumulator<P>

Source§

fn allocate(length: usize, coordinate: bool, inst: &I) -> Self

Source§

fn read(accumulator: &Self, index: usize) -> Accumulator<P>

Source§

fn write(accumulator: &mut Self, index: usize, item: Accumulator<P>)

Source§

fn __expand_allocate( scope: &mut Scope, length: usize, coordinate: bool, inst: <I as RudaType>::ExpandType, ) -> <Self as RudaType>::ExpandType

Source§

fn __expand_read( scope: &mut Scope, accumulator: <Self as RudaType>::ExpandType, index: <usize as RudaType>::ExpandType, ) -> <Accumulator<P> as RudaType>::ExpandType

Source§

fn __expand_write( scope: &mut Scope, accumulator: <Self as RudaType>::ExpandType, index: <usize as RudaType>::ExpandType, item: <Accumulator<P> as RudaType>::ExpandType, ) -> <() as RudaType>::ExpandType

Auto Trait Implementations§

§

impl<P> Freeze for DynamicSharedAccumulator<P>

§

impl<P> RefUnwindSafe for DynamicSharedAccumulator<P>

§

impl<P> Send for DynamicSharedAccumulator<P>

§

impl<P> Sync for DynamicSharedAccumulator<P>

§

impl<P> Unpin for DynamicSharedAccumulator<P>

§

impl<P> UnsafeUnpin for DynamicSharedAccumulator<P>

§

impl<P> UnwindSafe for DynamicSharedAccumulator<P>

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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

Source§

fn comptime(self) -> Self

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.