pub trait MatrixLayout {
// Required methods
fn rows(&self) -> usize;
fn cols(&self) -> usize;
fn row_stride(&self) -> usize;
fn col_stride(&self) -> usize;
}
Expand description
Provides convenience methods for querying the shape and strides of a matrix.