pub struct UnitTile<E: Numeric> {
pub data: Array<E>,
pub layout: UnitTileLayout,
}Fields§
§data: Array<E>§layout: UnitTileLayoutImplementations§
Source§impl<E: Numeric> UnitTile<E>
impl<E: Numeric> UnitTile<E>
pub fn new(layout: UnitTileLayout) -> UnitTile<E>
pub fn zero(&mut self)
pub fn get(&self, row: u32, col: u32) -> E
pub fn accumulate(&mut self, row: u32, col: u32, val: E)
pub fn rowwise_scale(&mut self, scale: &RowWise<E>)
pub fn rowwise_max(&self) -> RowWise<E>
pub fn rowwise_sum(&self) -> RowWise<E>
pub fn copy_from<E2: Numeric>(&mut self, other: &UnitTile<E2>)
pub fn load_from_strided_tile<E2: Numeric, ES: Size>( &mut self, tile: &StridedTile<E2, ES>, )
pub fn scale_and_mask<M: Mask>(&mut self, scale: E, mask: &M)
pub fn __expand_new( scope: &mut Scope, layout: UnitTileLayout, ) -> <UnitTile<E> as CubeType>::ExpandType
pub fn __expand_zero( scope: &mut Scope, this: <Self as CubeType>::ExpandType, ) -> <() as CubeType>::ExpandType
pub fn __expand_get( scope: &mut Scope, this: <Self as CubeType>::ExpandType, row: <u32 as CubeType>::ExpandType, col: <u32 as CubeType>::ExpandType, ) -> <E as CubeType>::ExpandType
pub fn __expand_accumulate( scope: &mut Scope, this: <Self as CubeType>::ExpandType, row: <u32 as CubeType>::ExpandType, col: <u32 as CubeType>::ExpandType, val: <E as CubeType>::ExpandType, ) -> <() as CubeType>::ExpandType
pub fn __expand_rowwise_scale( scope: &mut Scope, this: <Self as CubeType>::ExpandType, scale: <RowWise<E> as CubeType>::ExpandType, ) -> <() as CubeType>::ExpandType
pub fn __expand_rowwise_max( scope: &mut Scope, this: <Self as CubeType>::ExpandType, ) -> <RowWise<E> as CubeType>::ExpandType
pub fn __expand_rowwise_sum( scope: &mut Scope, this: <Self as CubeType>::ExpandType, ) -> <RowWise<E> as CubeType>::ExpandType
pub fn __expand_copy_from<E2: Numeric>( scope: &mut Scope, this: <Self as CubeType>::ExpandType, other: <UnitTile<E2> as CubeType>::ExpandType, ) -> <() as CubeType>::ExpandType
pub fn __expand_load_from_strided_tile<E2: Numeric, ES: Size>( scope: &mut Scope, this: <Self as CubeType>::ExpandType, tile: <StridedTile<E2, ES> as CubeType>::ExpandType, ) -> <() as CubeType>::ExpandType
pub fn __expand_scale_and_mask<M: Mask>( scope: &mut Scope, this: <Self as CubeType>::ExpandType, scale: <E as CubeType>::ExpandType, mask: <M as CubeType>::ExpandType, ) -> <() as CubeType>::ExpandType
Source§impl<E: Float> UnitTile<E>
impl<E: Float> UnitTile<E>
pub fn exp_diff(&mut self, rowwise: &RowWise<E>)
pub fn __expand_exp_diff( scope: &mut Scope, this: <Self as CubeType>::ExpandType, rowwise: <RowWise<E> as CubeType>::ExpandType, ) -> <() as CubeType>::ExpandType
Trait Implementations§
Source§impl<E: Numeric> CubeType for UnitTile<E>
impl<E: Numeric> CubeType for UnitTile<E>
type ExpandType = UnitTileExpand<E>
Auto Trait Implementations§
impl<E> Freeze for UnitTile<E>
impl<E> RefUnwindSafe for UnitTile<E>where
E: RefUnwindSafe,
impl<E> Send for UnitTile<E>
impl<E> Sync for UnitTile<E>
impl<E> Unpin for UnitTile<E>where
E: Unpin,
impl<E> UnsafeUnpin for UnitTile<E>
impl<E> UnwindSafe for UnitTile<E>where
E: UnwindSafe,
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