pub struct ViewExpand<E: CubePrimitive, C: Coordinates, IO: Clone = ReadOnly> { /* private fields */ }Expand description
Expand type of [TensorView]
Implementations§
Source§impl<E: CubePrimitive, C: Coordinates + 'static, IO: Clone + 'static> ViewExpand<E, C, IO>
impl<E: CubePrimitive, C: Coordinates + 'static, IO: Clone + 'static> ViewExpand<E, C, IO>
pub fn __expand_view_method<T: Coordinates + 'static>( self, scope: &mut Scope, layout: VirtualLayoutExpand<T, C>, ) -> ViewExpand<E, T, ReadOnly>
pub fn new<V: ViewOperationsExpand<E, C> + 'static>(view: V) -> Self
pub fn new_mut<V: ViewOperationsMutExpand<E, C> + 'static>(view: V) -> Self
Source§impl<E: CubePrimitive, C: Coordinates + 'static> ViewExpand<E, C, ReadWrite>
impl<E: CubePrimitive, C: Coordinates + 'static> ViewExpand<E, C, ReadWrite>
pub fn __expand_view_mut_method<T: Coordinates + 'static>( self, scope: &mut Scope, layout: VirtualLayoutExpand<T, C>, ) -> ViewExpand<E, T, ReadWrite>
Source§impl<E: CubePrimitive, C: Coordinates, IO: Clone> ViewExpand<E, C, IO>
impl<E: CubePrimitive, C: Coordinates, IO: Clone> ViewExpand<E, C, IO>
pub fn __expand_shape_method(&self, scope: &mut Scope) -> C::ExpandType
pub fn __expand_is_in_bounds_method( &self, scope: &mut Scope, pos: C::ExpandType, ) -> ExpandElementTyped<bool>
Source§impl<E: CubePrimitive, C: Coordinates, IO: Clone> ViewExpand<E, C, IO>
impl<E: CubePrimitive, C: Coordinates, IO: Clone> ViewExpand<E, C, IO>
Sourcepub fn __expand_read_method(
self,
scope: &mut Scope,
pos: C::ExpandType,
) -> ExpandElementTyped<E>
pub fn __expand_read_method( self, scope: &mut Scope, pos: C::ExpandType, ) -> ExpandElementTyped<E>
Expand method for [TensorView::read]
Sourcepub fn __expand_read_unchecked_method(
self,
scope: &mut Scope,
pos: C::ExpandType,
) -> ExpandElementTyped<E>
pub fn __expand_read_unchecked_method( self, scope: &mut Scope, pos: C::ExpandType, ) -> ExpandElementTyped<E>
Expand method for [TensorView::read_unchecked]
Sourcepub fn __expand_read_checked_method(
self,
scope: &mut Scope,
pos: C::ExpandType,
) -> ExpandElementTyped<E>
pub fn __expand_read_checked_method( self, scope: &mut Scope, pos: C::ExpandType, ) -> ExpandElementTyped<E>
Expand method for [TensorView::read_checked]
Sourcepub fn __expand_read_masked_method(
self,
scope: &mut Scope,
pos: C::ExpandType,
mask_value: E::ExpandType,
) -> ExpandElementTyped<E>
pub fn __expand_read_masked_method( self, scope: &mut Scope, pos: C::ExpandType, mask_value: E::ExpandType, ) -> ExpandElementTyped<E>
Expand method for [TensorView::read_masked]
Sourcepub fn __expand_line_size_method(self, _scope: &mut Scope) -> u32
pub fn __expand_line_size_method(self, _scope: &mut Scope) -> u32
Expand method for [TensorView::line_size]
pub fn line_size(&self) -> u32
pub fn __expand_to_linear_slice_method( self, scope: &mut Scope, ) -> SliceExpand<E, ReadOnly>
Source§impl<E: CubePrimitive, C: Coordinates + 'static, IO: Clone + 'static> ViewExpand<E, C, IO>
impl<E: CubePrimitive, C: Coordinates + 'static, IO: Clone + 'static> ViewExpand<E, C, IO>
pub fn __expand_slice_method( &self, scope: &mut Scope, pos: C::ExpandType, size: C::ExpandType, ) -> ViewExpand<E, C, ReadOnly>
pub fn __expand_slice_unchecked_method( &self, scope: &mut Scope, pos: C::ExpandType, size: C::ExpandType, ) -> ViewExpand<E, C, ReadOnly>
Source§impl<E: CubePrimitive, C: Coordinates> ViewExpand<E, C, ReadWrite>
impl<E: CubePrimitive, C: Coordinates> ViewExpand<E, C, ReadWrite>
Sourcepub fn __expand_write_method(
self,
scope: &mut Scope,
pos: C::ExpandType,
value: ExpandElementTyped<E>,
)
pub fn __expand_write_method( self, scope: &mut Scope, pos: C::ExpandType, value: ExpandElementTyped<E>, )
Expand method for [TensorView::write]
Sourcepub fn __expand_write_checked_method(
self,
scope: &mut Scope,
pos: C::ExpandType,
value: ExpandElementTyped<E>,
)
pub fn __expand_write_checked_method( self, scope: &mut Scope, pos: C::ExpandType, value: ExpandElementTyped<E>, )
Expand method for [TensorView::write_checked]
pub fn __expand_to_linear_slice_mut_method( self, scope: &mut Scope, ) -> SliceExpand<E, ReadWrite>
Source§impl<E: CubePrimitive, C: Coordinates + 'static> ViewExpand<E, C, ReadWrite>
impl<E: CubePrimitive, C: Coordinates + 'static> ViewExpand<E, C, ReadWrite>
pub fn __expand_slice_mut_method( &self, scope: &mut Scope, pos: C::ExpandType, size: C::ExpandType, ) -> ViewExpand<E, C, ReadWrite>
pub fn __expand_slice_mut_unchecked_method( &self, scope: &mut Scope, pos: C::ExpandType, size: C::ExpandType, ) -> ViewExpand<E, C, ReadWrite>
Source§impl<E: CubePrimitive, C: Coordinates, IO: Clone> ViewExpand<E, C, IO>
impl<E: CubePrimitive, C: Coordinates, IO: Clone> ViewExpand<E, C, IO>
pub fn __expand_tensor_map_load_method( self, scope: &mut Scope, barrier: BarrierExpand, shared_memory: SliceExpand<E, ReadWrite>, pos: C::ExpandType, )
pub fn __expand_as_tensor_map_method( self, scope: &mut Scope, ) -> CubeOptionExpand<TensorMap<E>>
Source§impl<E: CubePrimitive, C: Coordinates> ViewExpand<E, C, ReadWrite>
impl<E: CubePrimitive, C: Coordinates> ViewExpand<E, C, ReadWrite>
pub fn __expand_tensor_map_store_method( self, scope: &mut Scope, shared_memory: SliceExpand<E, ReadOnly>, pos: C::ExpandType, )
Trait Implementations§
Source§impl<E: Clone + CubePrimitive, C: Clone + Coordinates, IO: Clone + Clone> Clone for ViewExpand<E, C, IO>
impl<E: Clone + CubePrimitive, C: Clone + Coordinates, IO: Clone + Clone> Clone for ViewExpand<E, C, IO>
Source§fn clone(&self) -> ViewExpand<E, C, IO>
fn clone(&self) -> ViewExpand<E, C, IO>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<E: CubePrimitive, C: Coordinates, IO: Clone> CubeDebug for ViewExpand<E, C, IO>
impl<E: CubePrimitive, C: Coordinates, IO: Clone> CubeDebug for ViewExpand<E, C, IO>
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<E: CubePrimitive, C: Coordinates, IO: Clone> CubeIndexExpand for ViewExpand<E, C, IO>
impl<E: CubePrimitive, C: Coordinates, IO: Clone> CubeIndexExpand for ViewExpand<E, C, IO>
type Output = <E as CubeType>::ExpandType
type Idx = <C as CubeType>::ExpandType
fn expand_index(self, scope: &mut Scope, index: C::ExpandType) -> Self::Output
fn expand_index_unchecked( self, scope: &mut Scope, index: C::ExpandType, ) -> Self::Output
Source§impl<E: CubePrimitive, C: Coordinates> CubeIndexMutExpand for ViewExpand<E, C, ReadWrite>
impl<E: CubePrimitive, C: Coordinates> CubeIndexMutExpand for ViewExpand<E, C, ReadWrite>
fn expand_index_mut( self, scope: &mut Scope, index: C::ExpandType, value: Self::Output, )
Source§impl<E: CubePrimitive, C: Coordinates, IO: Clone> IntoMut for ViewExpand<E, C, IO>
impl<E: CubePrimitive, C: Coordinates, IO: Clone> IntoMut for ViewExpand<E, C, IO>
Source§impl<T: CubePrimitive, C: Coordinates, IO: Clone> LinedExpand for ViewExpand<T, C, IO>
impl<T: CubePrimitive, C: Coordinates, IO: Clone> LinedExpand for ViewExpand<T, C, IO>
Source§impl<T: CubePrimitive, C: Coordinates, IO: Clone> ViewOperationsExpand<T, C> for ViewExpand<T, C, IO>
impl<T: CubePrimitive, C: Coordinates, IO: Clone> ViewOperationsExpand<T, C> for ViewExpand<T, C, IO>
fn __expand_read_method( &self, scope: &mut Scope, pos: C::ExpandType, ) -> T::ExpandType
fn __expand_read_checked_method( &self, scope: &mut Scope, pos: C::ExpandType, ) -> T::ExpandType
fn __expand_read_masked_method( &self, scope: &mut Scope, pos: C::ExpandType, mask_value: T::ExpandType, ) -> T::ExpandType
fn __expand_read_unchecked_method( &self, scope: &mut Scope, pos: C::ExpandType, ) -> T::ExpandType
fn __expand_to_linear_slice_method( &self, scope: &mut Scope, pos: C::ExpandType, end: C::ExpandType, ) -> SliceExpand<T, ReadOnly>
fn __expand_as_tensor_map_method( &self, scope: &mut Scope, ) -> CubeOptionExpand<TensorMap<T>>
fn __expand_shape_method(&self, scope: &mut Scope) -> C::ExpandType
fn __expand_is_in_bounds_method( &self, scope: &mut Scope, pos: C::ExpandType, ) -> ExpandElementTyped<bool>
fn __expand_tensor_map_load_method( &self, scope: &mut Scope, barrier: BarrierExpand, shared_memory: SliceExpand<T, ReadWrite>, pos: C::ExpandType, )
Source§impl<T: CubePrimitive, C: Coordinates> ViewOperationsMutExpand<T, C> for ViewExpand<T, C, ReadWrite>
impl<T: CubePrimitive, C: Coordinates> ViewOperationsMutExpand<T, C> for ViewExpand<T, C, ReadWrite>
fn __expand_write_method( &self, scope: &mut Scope, pos: C::ExpandType, value: T::ExpandType, )
fn __expand_write_checked_method( &self, scope: &mut Scope, pos: C::ExpandType, value: T::ExpandType, )
fn __expand_to_linear_slice_mut_method( &self, scope: &mut Scope, pos: C::ExpandType, end: C::ExpandType, ) -> SliceExpand<T, ReadWrite>
fn __expand_tensor_map_store_method( &self, scope: &mut Scope, shared_memory: SliceExpand<T, ReadOnly>, pos: C::ExpandType, )
Auto Trait Implementations§
impl<E, C, IO> Freeze for ViewExpand<E, C, IO>
impl<E, C, IO = ReadOnly> !RefUnwindSafe for ViewExpand<E, C, IO>
impl<E, C, IO = ReadOnly> !Send for ViewExpand<E, C, IO>
impl<E, C, IO = ReadOnly> !Sync for ViewExpand<E, C, IO>
impl<E, C, IO> Unpin for ViewExpand<E, C, IO>where
IO: Unpin,
impl<E, C, IO = ReadOnly> !UnwindSafe for ViewExpand<E, C, IO>
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