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.
Required Methods§
fn rows(&self) -> usize
fn cols(&self) -> usize
fn row_stride(&self) -> usize
fn col_stride(&self) -> usize
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".