#[derive(Clone, Debug, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct MatrixType {
pub rows: usize,
pub columns: usize,
}
impl MatrixType {
pub fn new(rows: usize, columns: usize) -> Self {
Self { rows, columns }
}
}
impl std::fmt::Display for MatrixType {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "Matrix{}x{}", self.rows, self.columns)
}
}