Trait array_matrix::matrix::adj::Adj

source ·
pub trait Adj: SquareMatrixwhere
    Self::Output: SquareMatrix,
{ type Output; fn adj(&self) -> Self::Output; }

Required Associated Types§

Required Methods§

Returns the adjugate matrix of the given square matrix

adj(A)

Examples
let a = [
    [1.0, 2.0],
    [3.0, 4.0]
];
let aa = [
    [4.0, -2.0],
    [-3.0, 1.0]
];
assert_eq!(a.adj(), aa);

Implementations on Foreign Types§

Implementors§