Trait array_matrix::matrix::det::Det

source ·
pub trait Det: SquareMatrix {
    type Output;

    fn det(&self) -> Self::Output;
}

Required Associated Types§

Required Methods§

Returns the determinant of the given matrix

|A|

Examples
let a = [
    [1.0, 0.0],
    [0.0, 1.0]
];
assert_eq!(a.det(), 1.0);

Implementations on Foreign Types§

Implementors§