pub trait SquareMatrixOperations<F> {
    // Required methods
    fn inverse(&self) -> Result<Self>
       where Self: Sized;
    fn identity(n: usize) -> Self;
    fn minors(&self) -> Self;
    fn cofactors(&self) -> Self;
    fn determinant(&self) -> F;
}
Expand description

Matrix operations that are defined on square matrices.

Required Methods§

source

fn inverse(&self) -> Result<Self>where Self: Sized,

Compute the matrix inverse, if it exists

source

fn identity(n: usize) -> Self

Construct an n x n identity matrix

source

fn minors(&self) -> Self

Compute the matrix of minors

source

fn cofactors(&self) -> Self

Compute the matrix of cofactors

source

fn determinant(&self) -> F

Compute the matrix determinant

Implementors§