pub struct PlanesOutput<A: Numeric> { /* private fields */ }Expand description
The output of one cube, reached by its planes.
Where the partitioning hands every plane a box of the output of its own, a plane’s sum drains
into its box. Where it splits an axis the output lacks across the planes, the contracted axis of
a sum they each hold part of, the planes holding the same box drain into a shared-memory
accumulator on the cyclic schedule (SmemCyclicAccumulation) and write stores the sum.
The tile says which from the partitioning it was cut by: the caller states nothing.
Implementations§
Source§impl<A: Numeric> PlanesOutput<A>
impl<A: Numeric> PlanesOutput<A>
Sourcepub fn drain(&self, partial: &Tile, plane: &Region)
pub fn drain(&self, partial: &Tile, plane: &Region)
Drain partial, the sum plane holds over its box of the output. Where planes share the
box it is a meeting of the cube: every unit of every plane drains, each with its plane’s
partial.
Sourcepub fn write(&mut self)
pub fn write(&mut self)
Store the sum the planes sharing a box drained into it, once every plane has; nothing where each plane drained into its own box.
Sourcepub fn __expand_drain(
scope: &Scope,
this: &<Self as CubeType>::ExpandType,
partial: &<Tile as CubeType>::ExpandType,
plane: &<Region as CubeType>::ExpandType,
)
pub fn __expand_drain( scope: &Scope, this: &<Self as CubeType>::ExpandType, partial: &<Tile as CubeType>::ExpandType, plane: &<Region as CubeType>::ExpandType, )
Drain partial, the sum plane holds over its box of the output. Where planes share the
box it is a meeting of the cube: every unit of every plane drains, each with its plane’s
partial.
Sourcepub fn __expand_write(scope: &Scope, this: &mut <Self as CubeType>::ExpandType)
pub fn __expand_write(scope: &Scope, this: &mut <Self as CubeType>::ExpandType)
Store the sum the planes sharing a box drained into it, once every plane has; nothing where each plane drained into its own box.
Trait Implementations§
Source§impl<A: Numeric> CubeType for PlanesOutput<A>
impl<A: Numeric> CubeType for PlanesOutput<A>
type ExpandType = PlanesOutputExpand<A>
Auto Trait Implementations§
impl<A> !Send for PlanesOutput<A>
impl<A> !Sync for PlanesOutput<A>
impl<A> Freeze for PlanesOutput<A>
impl<A> RefUnwindSafe for PlanesOutput<A>
impl<A> Unpin for PlanesOutput<A>
impl<A> UnsafeUnpin for PlanesOutput<A>
impl<A> UnwindSafe for PlanesOutput<A>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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