pub struct VirtualTensorExpand<E: Numeric, N: Size, IO> { /* private fields */ }Expand description
Expand type for VirtualTensor.
Implementations§
Source§impl<E: Numeric, N: Size, IO: Clone> VirtualTensorExpand<E, N, IO>
impl<E: Numeric, N: Size, IO: Clone> VirtualTensorExpand<E, N, IO>
pub fn __expand_as_tensor_map_method( self, context: &mut Scope, ) -> <ComptimeOption<TensorMap<E, Tiled>> as CubeType>::ExpandType
pub fn __expand_as_slice_method( self, context: &mut Scope, start: <usize as CubeType>::ExpandType, end: <usize as CubeType>::ExpandType, ) -> <Slice<Vector<E, N>> as CubeType>::ExpandType
pub fn __expand_shape_method( self, scope: &mut Scope, axis: <usize as CubeType>::ExpandType, ) -> <usize as CubeType>::ExpandType
pub fn __expand_stride_method( self, scope: &mut Scope, axis: <usize as CubeType>::ExpandType, ) -> <usize as CubeType>::ExpandType
pub fn __expand_rank_method( self, scope: &mut Scope, ) -> <usize as CubeType>::ExpandType
pub fn __expand_buffer_len_method( self, scope: &mut Scope, ) -> <usize as CubeType>::ExpandType
pub fn __expand_read( scope: &mut Scope, this: Self, index: <usize as CubeType>::ExpandType, ) -> <Vector<E, N> as CubeType>::ExpandType
pub fn __expand_shape( scope: &mut Scope, this: Self, axis: <usize as CubeType>::ExpandType, ) -> <usize as CubeType>::ExpandType
pub fn __expand_stride( scope: &mut Scope, this: Self, axis: <usize as CubeType>::ExpandType, ) -> <usize as CubeType>::ExpandType
pub fn __expand_rank( scope: &mut Scope, this: Self, ) -> <usize as CubeType>::ExpandType
Source§impl<E: Numeric, N: Size, IO: Clone + 'static> VirtualTensorExpand<E, N, IO>
impl<E: Numeric, N: Size, IO: Clone + 'static> VirtualTensorExpand<E, N, IO>
pub fn __expand_as_view_method( self, scope: &mut Scope, ) -> <View<Vector<E, N>, usize, ReadOnly> as CubeType>::ExpandType
pub fn __expand_as_view( scope: &mut Scope, this: Self, ) -> <View<Vector<E, N>, usize, ReadOnly> as CubeType>::ExpandType
Source§impl<E: Numeric, N: Size, IO: Clone + 'static> VirtualTensorExpand<E, N, IO>
impl<E: Numeric, N: Size, IO: Clone + 'static> VirtualTensorExpand<E, N, IO>
Sourcepub fn __expand_view_method<C: Coordinates + 'static>(
&self,
scope: &mut Scope,
layout: VirtualLayoutExpand<C, Coords1d>,
) -> ViewExpand<Vector<E, N>, C, ReadOnly>
pub fn __expand_view_method<C: Coordinates + 'static>( &self, scope: &mut Scope, layout: VirtualLayoutExpand<C, Coords1d>, ) -> ViewExpand<Vector<E, N>, C, ReadOnly>
Create a conceptual view over this tensor, allowing for multi-dimensional indexing with custom layouts
Source§impl<E: Numeric, N: Size> VirtualTensorExpand<E, N, ReadWrite>
impl<E: Numeric, N: Size> VirtualTensorExpand<E, N, ReadWrite>
pub fn __expand_view_mut_method<C: Coordinates + 'static>( self, scope: &mut Scope, layout: VirtualLayoutExpand<C, Coords1d>, ) -> ViewExpand<Vector<E, N>, C, ReadWrite>
Source§impl<E: Numeric, N: Size> VirtualTensorExpand<E, N, ReadWrite>
impl<E: Numeric, N: Size> VirtualTensorExpand<E, N, ReadWrite>
pub fn __expand_as_view_mut_method( self, scope: &mut Scope, ) -> <View<Vector<E, N>, usize, ReadWrite> as CubeType>::ExpandType
pub fn __expand_as_view_mut( scope: &mut Scope, this: Self, ) -> <View<Vector<E, N>, usize, ReadWrite> as CubeType>::ExpandType
Source§impl<E: Numeric, N: Size, IO: Clone + 'static> VirtualTensorExpand<E, N, IO>
impl<E: Numeric, N: Size, IO: Clone + 'static> VirtualTensorExpand<E, N, IO>
pub fn __expand_coordinate_method( self, scope: &mut Scope, index: <usize as CubeType>::ExpandType, dim: <usize as CubeType>::ExpandType, ) -> <usize as CubeType>::ExpandType
pub fn __expand_coordinate( scope: &mut Scope, this: Self, index: <usize as CubeType>::ExpandType, dim: <usize as CubeType>::ExpandType, ) -> <usize as CubeType>::ExpandType
Trait Implementations§
Source§impl<E: Clone + Numeric, N: Clone + Size, IO: Clone> Clone for VirtualTensorExpand<E, N, IO>
impl<E: Clone + Numeric, N: Clone + Size, IO: Clone> Clone for VirtualTensorExpand<E, N, IO>
Source§fn clone(&self) -> VirtualTensorExpand<E, N, IO>
fn clone(&self) -> VirtualTensorExpand<E, N, 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: Numeric, N: Size, IO> CubeDebug for VirtualTensorExpand<E, N, IO>
impl<E: Numeric, N: Size, IO> CubeDebug for VirtualTensorExpand<E, N, 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: Numeric, N: Size, IO: Clone> ListExpand<Vector<E, N>> for VirtualTensorExpand<E, N, IO>
impl<E: Numeric, N: Size, IO: Clone> ListExpand<Vector<E, N>> for VirtualTensorExpand<E, N, IO>
fn __expand_read_method( &self, scope: &mut Scope, index: <usize as CubeType>::ExpandType, ) -> <Vector<E, N> as CubeType>::ExpandType
fn __expand_read_unchecked_method( &self, _scope: &mut Scope, _index: NativeExpand<usize>, ) -> <Vector<E, N> as CubeType>::ExpandType
fn __expand_len_method(&self, scope: &mut Scope) -> NativeExpand<usize>
Source§impl<E: Numeric, N: Size> ListMutExpand<Vector<E, N>> for VirtualTensorExpand<E, N, ReadWrite>
impl<E: Numeric, N: Size> ListMutExpand<Vector<E, N>> for VirtualTensorExpand<E, N, ReadWrite>
fn __expand_write_method( &self, scope: &mut Scope, index: <usize as CubeType>::ExpandType, value: <Vector<E, N> as CubeType>::ExpandType, ) -> <() as CubeType>::ExpandType
Source§impl<E: Numeric, N: Size> SliceMutOperatorExpand<Vector<E, N>> for VirtualTensorExpand<E, N, ReadWrite>
impl<E: Numeric, N: Size> SliceMutOperatorExpand<Vector<E, N>> for VirtualTensorExpand<E, N, ReadWrite>
fn __expand_slice_mut_method( &self, scope: &mut Scope, start: NativeExpand<usize>, end: NativeExpand<usize>, ) -> SliceExpand<Vector<E, N>, ReadWrite>
fn __expand_to_slice_mut_method( &self, scope: &mut Scope, ) -> SliceExpand<Vector<E, N>, ReadWrite>
Source§impl<E: Numeric, N: Size, IO: Clone> SliceOperatorExpand<Vector<E, N>> for VirtualTensorExpand<E, N, IO>
impl<E: Numeric, N: Size, IO: Clone> SliceOperatorExpand<Vector<E, N>> for VirtualTensorExpand<E, N, IO>
fn __expand_slice_method( &self, scope: &mut Scope, start: NativeExpand<usize>, end: NativeExpand<usize>, ) -> SliceExpand<Vector<E, N>, ReadOnly>
fn __expand_to_slice_method( &self, scope: &mut Scope, ) -> SliceExpand<Vector<E, N>, ReadOnly>
Source§impl<E: Numeric, N: Size, IO: Clone> VectorizedExpand for VirtualTensorExpand<E, N, IO>
impl<E: Numeric, N: Size, IO: Clone> VectorizedExpand for VirtualTensorExpand<E, N, IO>
fn vector_size(&self) -> VectorSize
fn __expand_vector_size_method(&self, _scope: &mut Scope) -> usize
Source§impl<T: Numeric, N: Size, IO: Clone> ViewOperationsExpand<Vector<T, N>, usize> for VirtualTensorExpand<T, N, IO>
impl<T: Numeric, N: Size, IO: Clone> ViewOperationsExpand<Vector<T, N>, usize> for VirtualTensorExpand<T, N, IO>
fn __expand_read_method( &self, scope: &mut Scope, pos: NativeExpand<usize>, ) -> <Vector<T, N> as CubeType>::ExpandType
fn __expand_read_checked_method( &self, scope: &mut Scope, pos: NativeExpand<usize>, ) -> <Vector<T, N> as CubeType>::ExpandType
fn __expand_read_masked_method( &self, scope: &mut Scope, pos: NativeExpand<usize>, mask_value: <Vector<T, N> as CubeType>::ExpandType, ) -> <Vector<T, N> as CubeType>::ExpandType
fn __expand_read_unchecked_method( &self, scope: &mut Scope, pos: NativeExpand<usize>, ) -> <Vector<T, N> as CubeType>::ExpandType
fn __expand_to_linear_slice_method( &self, scope: &mut Scope, pos: NativeExpand<usize>, end: NativeExpand<usize>, ) -> SliceExpand<Vector<T, N>, ReadOnly>
fn __expand_shape_method(&self, scope: &mut Scope) -> NativeExpand<usize>
fn __expand_is_in_bounds_method( &self, scope: &mut Scope, pos: NativeExpand<usize>, ) -> NativeExpand<bool>
fn __expand_tensor_map_load_method( &self, _scope: &mut Scope, _barrier: BarrierExpand, _shared_memory: SliceExpand<Vector<T, N>, ReadWrite>, _pos: NativeExpand<usize>, )
Source§impl<T: Numeric, N: Size> ViewOperationsMutExpand<Vector<T, N>, usize> for VirtualTensorExpand<T, N, ReadWrite>
impl<T: Numeric, N: Size> ViewOperationsMutExpand<Vector<T, N>, usize> for VirtualTensorExpand<T, N, ReadWrite>
fn __expand_write_method( &self, scope: &mut Scope, pos: NativeExpand<usize>, value: <Vector<T, N> as CubeType>::ExpandType, )
fn __expand_write_checked_method( &self, scope: &mut Scope, pos: NativeExpand<usize>, value: <Vector<T, N> as CubeType>::ExpandType, )
fn __expand_to_linear_slice_mut_method( &self, scope: &mut Scope, pos: NativeExpand<usize>, end: NativeExpand<usize>, ) -> SliceExpand<Vector<T, N>, ReadWrite>
fn __expand_tensor_map_store_method( &self, _scope: &mut Scope, _shared_memory: SliceExpand<Vector<T, N>, ReadOnly>, _pos: <Coords1d as CubeType>::ExpandType, )
Auto Trait Implementations§
impl<E, N, IO> Freeze for VirtualTensorExpand<E, N, IO>
impl<E, N, IO> !RefUnwindSafe for VirtualTensorExpand<E, N, IO>
impl<E, N, IO> !Send for VirtualTensorExpand<E, N, IO>
impl<E, N, IO> !Sync for VirtualTensorExpand<E, N, IO>
impl<E, N, IO> Unpin for VirtualTensorExpand<E, N, IO>where
IO: Unpin,
impl<E, N, IO> UnsafeUnpin for VirtualTensorExpand<E, N, IO>
impl<E, N, IO> !UnwindSafe for VirtualTensorExpand<E, N, 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