ViewExpand

Struct ViewExpand 

Source
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>

Source

pub fn __expand_view_method<T: Coordinates + 'static>( self, scope: &mut Scope, layout: VirtualLayoutExpand<T, C>, ) -> ViewExpand<E, T, ReadOnly>

Source

pub fn new<V: ViewOperationsExpand<E, C> + 'static>(view: V) -> Self

Source

pub fn new_mut<V: ViewOperationsMutExpand<E, C> + 'static>(view: V) -> Self

Source§

impl<E: CubePrimitive, C: Coordinates + 'static> ViewExpand<E, C, ReadWrite>

Source

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>

Source

pub fn __expand_shape_method(&self, scope: &mut Scope) -> C::ExpandType

Source

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>

Source

pub fn __expand_read_method( self, scope: &mut Scope, pos: C::ExpandType, ) -> ExpandElementTyped<E>

Expand method for [TensorView::read]

Source

pub fn __expand_read_unchecked_method( self, scope: &mut Scope, pos: C::ExpandType, ) -> ExpandElementTyped<E>

Expand method for [TensorView::read_unchecked]

Source

pub fn __expand_read_checked_method( self, scope: &mut Scope, pos: C::ExpandType, ) -> ExpandElementTyped<E>

Expand method for [TensorView::read_checked]

Source

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]

Source

pub fn __expand_line_size_method(self, _scope: &mut Scope) -> u32

Expand method for [TensorView::line_size]

Source

pub fn line_size(&self) -> u32

Source

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>

Source

pub fn __expand_slice_method( &self, scope: &mut Scope, pos: C::ExpandType, size: C::ExpandType, ) -> ViewExpand<E, C, ReadOnly>

Source

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>

Source

pub fn __expand_write_method( self, scope: &mut Scope, pos: C::ExpandType, value: ExpandElementTyped<E>, )

Expand method for [TensorView::write]

Source

pub fn __expand_write_checked_method( self, scope: &mut Scope, pos: C::ExpandType, value: ExpandElementTyped<E>, )

Expand method for [TensorView::write_checked]

Source

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>

Source

pub fn __expand_slice_mut_method( &self, scope: &mut Scope, pos: C::ExpandType, size: C::ExpandType, ) -> ViewExpand<E, C, ReadWrite>

Source

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>

Source

pub fn __expand_tensor_map_load_method( self, scope: &mut Scope, barrier: BarrierExpand, shared_memory: SliceExpand<E, ReadWrite>, pos: C::ExpandType, )

Source

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

Source§

impl<E: CubePrimitive, C: Coordinates> ViewExpand<E, C, ReadWrite>

Source

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>

Source§

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)

Performs copy-assignment from source. Read more
Source§

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)

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>

Source§

type Output = <E as CubeType>::ExpandType

Source§

type Idx = <C as CubeType>::ExpandType

Source§

fn expand_index(self, scope: &mut Scope, index: C::ExpandType) -> Self::Output

Source§

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>

Source§

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>

Source§

fn into_mut(self, _scope: &mut Scope) -> Self

Source§

impl<T: CubePrimitive, C: Coordinates, IO: Clone> LinedExpand for ViewExpand<T, C, IO>

Source§

fn line_size(&self) -> u32

Source§

fn __expand_line_size_method(&self, _scope: &mut Scope) -> u32

Source§

impl<T: CubePrimitive, C: Coordinates, IO: Clone> ViewOperationsExpand<T, C> for ViewExpand<T, C, IO>

Source§

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

Source§

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

Source§

fn __expand_read_masked_method( &self, scope: &mut Scope, pos: C::ExpandType, mask_value: T::ExpandType, ) -> T::ExpandType

Source§

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

Source§

fn __expand_to_linear_slice_method( &self, scope: &mut Scope, pos: C::ExpandType, end: C::ExpandType, ) -> 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) -> C::ExpandType

Source§

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

Source§

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>

Source§

fn __expand_write_method( &self, scope: &mut Scope, pos: C::ExpandType, value: T::ExpandType, )

Source§

fn __expand_write_checked_method( &self, scope: &mut Scope, pos: C::ExpandType, value: T::ExpandType, )

Source§

fn __expand_to_linear_slice_mut_method( &self, scope: &mut Scope, pos: C::ExpandType, end: C::ExpandType, ) -> SliceExpand<T, ReadWrite>

Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V