Trait Matrix

Source
pub trait Matrix {
    // Required methods
    fn width(&self) -> usize;
    fn height(&self) -> usize;

    // Provided methods
    fn size(&self) -> (usize, usize) { ... }
    fn is_square(&self) -> bool { ... }
}
Expand description

行列

Required Methods§

Source

fn width(&self) -> usize

行列の列数を返す。

Source

fn height(&self) -> usize

行列の行数を返す。

Provided Methods§

Source

fn size(&self) -> (usize, usize)

行数の行数と列数のペアを返す。

Source

fn is_square(&self) -> bool

行列が正方であるかどうかを判定する。

Implementors§

Source§

impl Matrix for MatrixMod2

Source§

impl<R: Semiring> Matrix for MatrixOnSemiring<R>

Source§

impl<S: Semiring, const R: usize, const C: usize> Matrix for ConstMatrix<S, R, C>