pub struct MatrixTileSliceMut<'a> {
limbs: *mut u64,
dimensions: [usize; 2],
stride: NonZeroUsize,
_marker: PhantomData<&'a ()>,
}Expand description
A mutable view of a tile within a matrix.
§Safety
The limbs pointer must remain valid and exclusively accessible for the lifetime 'a, and must
point to a region large enough for dimensions[0] * 64 rows and dimensions[1] blocks with the
given stride.
Fields§
§limbs: *mut u64§dimensions: [usize; 2]Dimensions of the tile in units of 64 x 64 blocks: [block_rows, block_cols]
stride: NonZeroUsizeNumber of limbs between consecutive rows in the parent matrix
_marker: PhantomData<&'a ()>Implementations§
Source§impl<'a> MatrixTileSliceMut<'a>
impl<'a> MatrixTileSliceMut<'a>
pub fn from_matrix(m: &'a mut Matrix) -> Self
pub fn block_rows(&self) -> usize
pub fn block_columns(&self) -> usize
pub fn block_mut_at( &mut self, block_row: usize, block_col: usize, ) -> MatrixBlockSliceMut<'_>
pub fn split_rows_at_mut( &mut self, block_rows: usize, ) -> (MatrixTileSliceMut<'_>, MatrixTileSliceMut<'_>)
pub fn split_columns_at_mut( &mut self, block_columns: usize, ) -> (MatrixTileSliceMut<'_>, MatrixTileSliceMut<'_>)
pub fn zero_out(&mut self)
Trait Implementations§
Source§impl<'a> Clone for MatrixTileSliceMut<'a>
impl<'a> Clone for MatrixTileSliceMut<'a>
Source§fn clone(&self) -> MatrixTileSliceMut<'a>
fn clone(&self) -> MatrixTileSliceMut<'a>
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<'a> Debug for MatrixTileSliceMut<'a>
impl<'a> Debug for MatrixTileSliceMut<'a>
impl<'a> Copy for MatrixTileSliceMut<'a>
impl Send for MatrixTileSliceMut<'_>
Auto Trait Implementations§
impl<'a> Freeze for MatrixTileSliceMut<'a>
impl<'a> RefUnwindSafe for MatrixTileSliceMut<'a>
impl<'a> !Sync for MatrixTileSliceMut<'a>
impl<'a> Unpin for MatrixTileSliceMut<'a>
impl<'a> UnwindSafe for MatrixTileSliceMut<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more