pub trait Minor: Matrix {
    type Index;
    type Output;

    fn minor(&self, index: Self::Index) -> Self::Output;
}

Required Associated Types§

Required Methods§

Returns the determinant of the submatrix of a given cell

|Mᵢⱼ|

Arguments
  • index - Row and/or collumn to neglect
Examples
let a = [
    [1.0, 2.0, 3.0],
    [4.0, 5.0, 6.0],
    [7.0, 8.0, 9.0]
];
let m = [
    [5.0, 6.0],
    [8.0, 9.0]
].det();
assert_eq!(a.minor((0, 0)), m);

Implementations on Foreign Types§

Implementors§