pub struct MatMut<'a, T: Real = f64> {
rows: usize,
cols: usize,
ld: usize,
data: &'a mut [T],
}Expand description
The mutable counterpart of MatRef.
Fields§
§rows: usize§cols: usize§ld: usize§data: &'a mut [T]Implementations§
Source§impl<'a, T: Real> MatMut<'a, T>
impl<'a, T: Real> MatMut<'a, T>
Sourcepub fn new(
rows: usize,
cols: usize,
ld: usize,
data: &'a mut [T],
) -> Result<Self, StatlaError>
pub fn new( rows: usize, cols: usize, ld: usize, data: &'a mut [T], ) -> Result<Self, StatlaError>
A mutable view (same checks as MatRef::new).
§Errors
Sourcepub fn from_block(b: &'a mut DenseBlock<T>) -> Self
pub fn from_block(b: &'a mut DenseBlock<T>) -> Self
The mutable view of a whole block (an inconsistent block gives a
view with no columns, as MatRef::from_block).
Trait Implementations§
Auto Trait Implementations§
impl<'a, T = f64> !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