pub trait SquareMatrix: Matrix {
    fn identity() -> Self;
}

Required Methods§

Returns the identity matrix with the given dimensions

Examples
let a = [
    [1.0, 0.0],
    [0.0, 1.0]
]
assert_eq!(a, SquareMatrix::identity())

Implementations on Foreign Types§

Implementors§