pub enum WriterExpand<Out: NumericVector> {
Parallel(<ParallelWriter<Out> as RudaType>::ExpandType),
Perpendicular(<PerpendicularWriter<Out> as RudaType>::ExpandType),
}Variants§
Parallel(<ParallelWriter<Out> as RudaType>::ExpandType)
Perpendicular(<PerpendicularWriter<Out> as RudaType>::ExpandType)
Implementations§
Source§impl<Out: NumericVector> WriterExpand<Out>
impl<Out: NumericVector> WriterExpand<Out>
pub fn __expand_write_method<P: ReducePrecision, I: ReduceInstruction<P>>( self, scope: &mut Scope, local_index: <usize as RudaType>::ExpandType, accumulator: <Accumulator<P> as RudaType>::ExpandType, inst: <I as RudaType>::ExpandType, ) -> <() as RudaType>::ExpandType
pub fn __expand_commit_required_method(self, scope: &mut Scope) -> bool
pub fn __expand_commit_method( self, scope: &mut Scope, ) -> <() as RudaType>::ExpandType
pub fn __expand_write_count_method(self, scope: &mut Scope) -> VectorSize
pub fn __expand_new<P: ReducePrecision>( scope: &mut Scope, input: <VirtualTensor<P::EI, P::SI> as RudaType>::ExpandType, output: <VirtualTensor<Out::T, Out::N, ReadWrite> as RudaType>::ExpandType, reduce_axis: <usize as RudaType>::ExpandType, out_vec_axis: <usize as RudaType>::ExpandType, write_index: <usize as RudaType>::ExpandType, vectorization_mode: VectorizationMode, acc_format: AccumulatorFormat, ) -> <Writer<Out> as RudaType>::ExpandType
pub fn __expand_write<P: ReducePrecision, I: ReduceInstruction<P>>( scope: &mut Scope, this: Self, local_index: <usize as RudaType>::ExpandType, accumulator: <Accumulator<P> as RudaType>::ExpandType, inst: <I as RudaType>::ExpandType, ) -> <() as RudaType>::ExpandType
pub fn __expand_commit_required(scope: &mut Scope, this: Self) -> bool
pub fn __expand_commit( scope: &mut Scope, this: Self, ) -> <() as RudaType>::ExpandType
pub fn __expand_write_count(scope: &mut Scope, this: Self) -> VectorSize
Trait Implementations§
Source§impl<Out: NumericVector> Clone for WriterExpand<Out>
impl<Out: NumericVector> Clone for WriterExpand<Out>
Source§impl<Out: NumericVector> IntoMut for WriterExpand<Out>
impl<Out: NumericVector> IntoMut for WriterExpand<Out>
Source§impl<Out: NumericVector> RudaDebug for WriterExpand<Out>
impl<Out: NumericVector> RudaDebug for WriterExpand<Out>
Source§fn set_debug_name(&self, scope: &mut Scope, name: &'static str)
fn set_debug_name(&self, scope: &mut Scope, name: &'static str)
Set the debug name of this type’s expansion. Should do nothing for types that don’t appear
at runtime
Source§impl<Out: NumericVector> RudaEnum for WriterExpand<Out>
impl<Out: NumericVector> RudaEnum for WriterExpand<Out>
type RuntimeValue = ()
fn discriminant(&self) -> NativeExpand<i32>
Source§fn runtime_value(self) -> Self::RuntimeValue
fn runtime_value(self) -> Self::RuntimeValue
Return the runtime value of this enum, if only one variant has a value.
Should return () for all other cases.
fn discriminant_of(variant_name: &'static str) -> i32
fn discriminant_of_value(&self, variant_name: &'static str) -> i32
Auto Trait Implementations§
impl<Out> !RefUnwindSafe for WriterExpand<Out>
impl<Out> !Send for WriterExpand<Out>
impl<Out> !Sync for WriterExpand<Out>
impl<Out> !UnwindSafe for WriterExpand<Out>
impl<Out> Freeze for WriterExpand<Out>where
<ParallelWriter<Out> as RudaType>::ExpandType: Freeze,
<PerpendicularWriter<Out> as RudaType>::ExpandType: Freeze,
impl<Out> Unpin for WriterExpand<Out>where
<ParallelWriter<Out> as RudaType>::ExpandType: Unpin,
<PerpendicularWriter<Out> as RudaType>::ExpandType: Unpin,
impl<Out> UnsafeUnpin for WriterExpand<Out>where
<ParallelWriter<Out> as RudaType>::ExpandType: UnsafeUnpin,
<PerpendicularWriter<Out> as RudaType>::ExpandType: UnsafeUnpin,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more