Trait Adj

Source
pub trait Adj: SquareMatrix
where Self::Output: SquareMatrix,
{ type Output; // Required method fn adj(&self) -> Self::Output; }

Required Associated Types§

Required Methods§

Source

fn adj(&self) -> Self::Output

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);

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<F: Neg<Output = F> + Clone> Adj for [[F; 2]; 2]
where Self: SquareMatrix,

Source§

type Output = [[F; 2]; 2]

Source§

fn adj(&self) -> Self::Output

Source§

impl<F: One + Neg<Output = F>> Adj for [[F; 3]; 3]
where Self: SquareMatrix + Minor<Output = F, Index = (usize, usize)>,

Source§

type Output = [[F; 3]; 3]

Source§

fn adj(&self) -> Self::Output

Source§

impl<F: One + Neg<Output = F>> Adj for [[F; 4]; 4]
where Self: SquareMatrix + Minor<Output = F, Index = (usize, usize)>,

Source§

type Output = [[F; 4]; 4]

Source§

fn adj(&self) -> Self::Output

Source§

impl<F: One + Neg<Output = F>> Adj for [[F; 5]; 5]
where Self: SquareMatrix + Minor<Output = F, Index = (usize, usize)>,

Source§

type Output = [[F; 5]; 5]

Source§

fn adj(&self) -> Self::Output

Source§

impl<F: One + Neg<Output = F>> Adj for [[F; 6]; 6]
where Self: SquareMatrix + Minor<Output = F, Index = (usize, usize)>,

Source§

type Output = [[F; 6]; 6]

Source§

fn adj(&self) -> Self::Output

Source§

impl<F: One + Neg<Output = F>> Adj for [[F; 7]; 7]
where Self: SquareMatrix + Minor<Output = F, Index = (usize, usize)>,

Source§

type Output = [[F; 7]; 7]

Source§

fn adj(&self) -> Self::Output

Source§

impl<F: One + Neg<Output = F>> Adj for [[F; 8]; 8]
where Self: SquareMatrix + Minor<Output = F, Index = (usize, usize)>,

Source§

type Output = [[F; 8]; 8]

Source§

fn adj(&self) -> Self::Output

Source§

impl<F: One + Neg<Output = F>> Adj for [[F; 9]; 9]
where Self: SquareMatrix + Minor<Output = F, Index = (usize, usize)>,

Source§

type Output = [[F; 9]; 9]

Source§

fn adj(&self) -> Self::Output

Source§

impl<F: One + Neg<Output = F>> Adj for [[F; 10]; 10]
where Self: SquareMatrix + Minor<Output = F, Index = (usize, usize)>,

Source§

type Output = [[F; 10]; 10]

Source§

fn adj(&self) -> Self::Output

Source§

impl<F: One + Neg<Output = F>> Adj for [[F; 11]; 11]
where Self: SquareMatrix + Minor<Output = F, Index = (usize, usize)>,

Source§

type Output = [[F; 11]; 11]

Source§

fn adj(&self) -> Self::Output

Source§

impl<F: One + Neg<Output = F>> Adj for [[F; 12]; 12]
where Self: SquareMatrix + Minor<Output = F, Index = (usize, usize)>,

Source§

type Output = [[F; 12]; 12]

Source§

fn adj(&self) -> Self::Output

Source§

impl<F: One + Neg<Output = F>> Adj for [[F; 13]; 13]
where Self: SquareMatrix + Minor<Output = F, Index = (usize, usize)>,

Source§

type Output = [[F; 13]; 13]

Source§

fn adj(&self) -> Self::Output

Source§

impl<F: One + Neg<Output = F>> Adj for [[F; 14]; 14]
where Self: SquareMatrix + Minor<Output = F, Index = (usize, usize)>,

Source§

type Output = [[F; 14]; 14]

Source§

fn adj(&self) -> Self::Output

Source§

impl<F: One + Neg<Output = F>> Adj for [[F; 15]; 15]
where Self: SquareMatrix + Minor<Output = F, Index = (usize, usize)>,

Source§

type Output = [[F; 15]; 15]

Source§

fn adj(&self) -> Self::Output

Source§

impl<F: One + Neg<Output = F>> Adj for [[F; 16]; 16]
where Self: SquareMatrix + Minor<Output = F, Index = (usize, usize)>,

Source§

type Output = [[F; 16]; 16]

Source§

fn adj(&self) -> Self::Output

Source§

impl<F: One> Adj for [[F; 1]; 1]
where Self: SquareMatrix,

Source§

type Output = [[F; 1]; 1]

Source§

fn adj(&self) -> Self::Output

Implementors§