pub trait MatShape {
type Rows: Copy + Eq + Debug;
type Cols: Copy + Eq + Debug;
// Required methods
fn nrows(&self) -> Self::Rows;
fn ncols(&self) -> Self::Cols;
}
Expand description
Type with a given matrix shape.
pub trait MatShape {
type Rows: Copy + Eq + Debug;
type Cols: Copy + Eq + Debug;
// Required methods
fn nrows(&self) -> Self::Rows;
fn ncols(&self) -> Self::Cols;
}
Type with a given matrix shape.