pub struct MatMut<'a, T> { /* private fields */ }Expand description
The mutable counterpart of Mat: the output matrix of gemm/syrk/trsm/potrf
(available with the alloc feature; the vector-output ops write plain &mut [T]).
Implementations§
Source§impl<'a, T> MatMut<'a, T>
impl<'a, T> MatMut<'a, T>
Sourcepub fn new(data: &'a mut [T], rows: usize, cols: usize) -> Self
pub fn new(data: &'a mut [T], rows: usize, cols: usize) -> Self
A dense row-major mutable view (stride = cols).
Sourcepub fn strided(
data: &'a mut [T],
rows: usize,
cols: usize,
stride: usize,
layout: Layout,
) -> Self
pub fn strided( data: &'a mut [T], rows: usize, cols: usize, stride: usize, layout: Layout, ) -> Self
A mutable view with an explicit leading stride and layout.
pub fn rows(&self) -> usize
pub fn cols(&self) -> usize
Auto Trait Implementations§
impl<'a, T> !UnwindSafe for MatMut<'a, T>
impl<'a, T> Freeze for MatMut<'a, T>
impl<'a, T> RefUnwindSafe for MatMut<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for MatMut<'a, T>where
T: Send,
impl<'a, T> Sync for MatMut<'a, T>where
T: Sync,
impl<'a, T> Unpin for MatMut<'a, T>
impl<'a, T> UnsafeUnpin for MatMut<'a, T>
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