ViewOperationsExpand

Trait ViewOperationsExpand 

Source
pub trait ViewOperationsExpand<T: CubePrimitive, C: Coordinates>: LinedExpand {
    // Required methods
    fn __expand_read_method(
        &self,
        scope: &mut Scope,
        pos: <C as CubeType>::ExpandType,
    ) -> <T as CubeType>::ExpandType;
    fn __expand_read_checked_method(
        &self,
        scope: &mut Scope,
        pos: <C as CubeType>::ExpandType,
    ) -> <T as CubeType>::ExpandType;
    fn __expand_read_masked_method(
        &self,
        scope: &mut Scope,
        pos: <C as CubeType>::ExpandType,
        value: <T as CubeType>::ExpandType,
    ) -> <T as CubeType>::ExpandType;
    fn __expand_read_unchecked_method(
        &self,
        scope: &mut Scope,
        pos: <C as CubeType>::ExpandType,
    ) -> <T as CubeType>::ExpandType;
    fn __expand_to_linear_slice_method(
        &self,
        scope: &mut Scope,
        pos: <C as CubeType>::ExpandType,
        size: <C as CubeType>::ExpandType,
    ) -> <Slice<T, ReadOnly> as CubeType>::ExpandType;
    fn __expand_as_tensor_map_method(
        &self,
        scope: &mut Scope,
    ) -> <CubeOption<TensorMap<T>> as CubeType>::ExpandType;
    fn __expand_tensor_map_load_method(
        &self,
        scope: &mut Scope,
        barrier: <Barrier as CubeType>::ExpandType,
        shared_memory: <Slice<T, ReadWrite> as CubeType>::ExpandType,
        pos: <C as CubeType>::ExpandType,
    ) -> <() as CubeType>::ExpandType;
    fn __expand_shape_method(
        &self,
        scope: &mut Scope,
    ) -> <C as CubeType>::ExpandType;
    fn __expand_is_in_bounds_method(
        &self,
        scope: &mut Scope,
        pos: <C as CubeType>::ExpandType,
    ) -> <bool as CubeType>::ExpandType;
}
Expand description

Type from which we can read values in cube functions. For a mutable version, see ListMut.

Required Methods§

Source

fn __expand_read_method( &self, scope: &mut Scope, pos: <C as CubeType>::ExpandType, ) -> <T as CubeType>::ExpandType

Source

fn __expand_read_checked_method( &self, scope: &mut Scope, pos: <C as CubeType>::ExpandType, ) -> <T as CubeType>::ExpandType

Source

fn __expand_read_masked_method( &self, scope: &mut Scope, pos: <C as CubeType>::ExpandType, value: <T as CubeType>::ExpandType, ) -> <T as CubeType>::ExpandType

Source

fn __expand_read_unchecked_method( &self, scope: &mut Scope, pos: <C as CubeType>::ExpandType, ) -> <T as CubeType>::ExpandType

Source

fn __expand_to_linear_slice_method( &self, scope: &mut Scope, pos: <C as CubeType>::ExpandType, size: <C as CubeType>::ExpandType, ) -> <Slice<T, ReadOnly> as CubeType>::ExpandType

Source

fn __expand_as_tensor_map_method( &self, scope: &mut Scope, ) -> <CubeOption<TensorMap<T>> as CubeType>::ExpandType

Source

fn __expand_tensor_map_load_method( &self, scope: &mut Scope, barrier: <Barrier as CubeType>::ExpandType, shared_memory: <Slice<T, ReadWrite> as CubeType>::ExpandType, pos: <C as CubeType>::ExpandType, ) -> <() as CubeType>::ExpandType

Source

fn __expand_shape_method( &self, scope: &mut Scope, ) -> <C as CubeType>::ExpandType

Source

fn __expand_is_in_bounds_method( &self, scope: &mut Scope, pos: <C as CubeType>::ExpandType, ) -> <bool as CubeType>::ExpandType

Implementations on Foreign Types§

Source§

impl<T: CubePrimitive> ViewOperationsExpand<T, (i32, i32)> for ExpandElementTyped<TensorMap<T>>

Source§

impl<T: CubePrimitive> ViewOperationsExpand<T, (i32, i32, i32)> for ExpandElementTyped<TensorMap<T>>

Source§

impl<T: CubePrimitive> ViewOperationsExpand<T, (i32, i32, i32, i32)> for ExpandElementTyped<TensorMap<T>>

Source§

impl<T: CubePrimitive> ViewOperationsExpand<T, (i32, i32, i32, i32, i32)> for ExpandElementTyped<TensorMap<T>>

Source§

impl<T: CubePrimitive> ViewOperationsExpand<T, (u32, u32)> for ExpandElementTyped<TensorMap<T>>

Source§

impl<T: CubePrimitive> ViewOperationsExpand<T, (u32, u32, u32)> for ExpandElementTyped<TensorMap<T>>

Source§

impl<T: CubePrimitive> ViewOperationsExpand<T, (u32, u32, u32, u32)> for ExpandElementTyped<TensorMap<T>>

Source§

impl<T: CubePrimitive> ViewOperationsExpand<T, (u32, u32, u32, u32, u32)> for ExpandElementTyped<TensorMap<T>>

Source§

impl<T: CubePrimitive> ViewOperationsExpand<T, i32> for ExpandElementTyped<TensorMap<T>>

Source§

impl<T: CubePrimitive> ViewOperationsExpand<T, u32> for ExpandElementTyped<Array<T>>

Source§

impl<T: CubePrimitive> ViewOperationsExpand<T, u32> for ExpandElementTyped<SharedMemory<T>>

Source§

impl<T: CubePrimitive> ViewOperationsExpand<T, u32> for ExpandElementTyped<Tensor<T>>

Source§

impl<T: CubePrimitive> ViewOperationsExpand<T, u32> for ExpandElementTyped<TensorMap<T>>

Source§

impl<T: CubePrimitive, IO: SliceVisibility> ViewOperationsExpand<T, u32> for SliceExpand<T, IO>

Source§

impl<T: CubePrimitive, N: CubePrimitive + Coordinates> ViewOperationsExpand<T, Sequence<N>> for ExpandElementTyped<TensorMap<T>>

Source§

fn __expand_read_method( &self, _scope: &mut Scope, _pos: SequenceExpand<N>, ) -> <T as CubeType>::ExpandType

Source§

fn __expand_read_checked_method( &self, _scope: &mut Scope, _pos: SequenceExpand<N>, ) -> <T as CubeType>::ExpandType

Source§

fn __expand_read_masked_method( &self, _scope: &mut Scope, _pos: SequenceExpand<N>, _mask_value: <T as CubeType>::ExpandType, ) -> <T as CubeType>::ExpandType

Source§

fn __expand_read_unchecked_method( &self, _scope: &mut Scope, _pos: SequenceExpand<N>, ) -> <T as CubeType>::ExpandType

Source§

fn __expand_to_linear_slice_method( &self, _scope: &mut Scope, _pos: SequenceExpand<N>, _end: SequenceExpand<N>, ) -> SliceExpand<T, ReadOnly>

Source§

fn __expand_as_tensor_map_method( &self, scope: &mut Scope, ) -> CubeOptionExpand<TensorMap<T>>

Source§

fn __expand_shape_method(&self, _scope: &mut Scope) -> SequenceExpand<N>

Source§

fn __expand_is_in_bounds_method( &self, _scope: &mut Scope, _pos: SequenceExpand<N>, ) -> ExpandElementTyped<bool>

Source§

fn __expand_tensor_map_load_method( &self, scope: &mut Scope, barrier: BarrierExpand, shared_memory: SliceExpand<T, ReadWrite>, pos: SequenceExpand<N>, )

Implementors§