pub fn from_array_rows_mut<'a, T, const N: usize>(
data: &'a mut [[T; N]],
) -> BlockMut<'a, T>Expand description
Create a mutable block reference from a full matrix represented as an array of rows.
ยงExamples
let data = &mut [
[0, 1, 2],
[3, 4, 5],
];
let mut block = matrix_slice::from_array_rows_mut(data);
assert_eq!(block.rows(), 2);
assert_eq!(block.cols(), 3);
block[(1, 1)] = 42;
assert_eq!(data[1][1], 42);