Trait Det

Source
pub trait Det: SquareMatrix {
    type Output;

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

Required Associated Types§

Required Methods§

Source

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

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

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> Det for [[F; 3]; 3]
where F: Clone + Mul<F, Output = F> + Add<F, Output = F>, Self: SquareMatrix + Minor<Output = F, Index = (usize, usize)>,

Source§

type Output = F

Source§

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

Source§

impl<F> Det for [[F; 4]; 4]
where F: Clone + Mul<F, Output = F> + Add<F, Output = F>, Self: SquareMatrix + Minor<Output = F, Index = (usize, usize)>,

Source§

type Output = F

Source§

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

Source§

impl<F> Det for [[F; 5]; 5]
where F: Clone + Mul<F, Output = F> + Add<F, Output = F>, Self: SquareMatrix + Minor<Output = F, Index = (usize, usize)>,

Source§

type Output = F

Source§

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

Source§

impl<F> Det for [[F; 6]; 6]
where F: Clone + Mul<F, Output = F> + Add<F, Output = F>, Self: SquareMatrix + Minor<Output = F, Index = (usize, usize)>,

Source§

type Output = F

Source§

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

Source§

impl<F> Det for [[F; 7]; 7]
where F: Clone + Mul<F, Output = F> + Add<F, Output = F>, Self: SquareMatrix + Minor<Output = F, Index = (usize, usize)>,

Source§

type Output = F

Source§

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

Source§

impl<F> Det for [[F; 8]; 8]
where F: Clone + Mul<F, Output = F> + Add<F, Output = F>, Self: SquareMatrix + Minor<Output = F, Index = (usize, usize)>,

Source§

type Output = F

Source§

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

Source§

impl<F> Det for [[F; 9]; 9]
where F: Clone + Mul<F, Output = F> + Add<F, Output = F>, Self: SquareMatrix + Minor<Output = F, Index = (usize, usize)>,

Source§

type Output = F

Source§

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

Source§

impl<F> Det for [[F; 10]; 10]
where F: Clone + Mul<F, Output = F> + Add<F, Output = F>, Self: SquareMatrix + Minor<Output = F, Index = (usize, usize)>,

Source§

type Output = F

Source§

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

Source§

impl<F> Det for [[F; 11]; 11]
where F: Clone + Mul<F, Output = F> + Add<F, Output = F>, Self: SquareMatrix + Minor<Output = F, Index = (usize, usize)>,

Source§

type Output = F

Source§

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

Source§

impl<F> Det for [[F; 12]; 12]
where F: Clone + Mul<F, Output = F> + Add<F, Output = F>, Self: SquareMatrix + Minor<Output = F, Index = (usize, usize)>,

Source§

type Output = F

Source§

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

Source§

impl<F> Det for [[F; 13]; 13]
where F: Clone + Mul<F, Output = F> + Add<F, Output = F>, Self: SquareMatrix + Minor<Output = F, Index = (usize, usize)>,

Source§

type Output = F

Source§

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

Source§

impl<F> Det for [[F; 14]; 14]
where F: Clone + Mul<F, Output = F> + Add<F, Output = F>, Self: SquareMatrix + Minor<Output = F, Index = (usize, usize)>,

Source§

type Output = F

Source§

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

Source§

impl<F> Det for [[F; 15]; 15]
where F: Clone + Mul<F, Output = F> + Add<F, Output = F>, Self: SquareMatrix + Minor<Output = F, Index = (usize, usize)>,

Source§

type Output = F

Source§

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

Source§

impl<F> Det for [[F; 16]; 16]
where F: Clone + Mul<F, Output = F> + Add<F, Output = F>, Self: SquareMatrix + Minor<Output = F, Index = (usize, usize)>,

Source§

type Output = F

Source§

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

Source§

impl<F: Clone + Mul<F, Output = F> + Sub<F, Output = F>> Det for [[F; 2]; 2]
where Self: SquareMatrix,

Source§

type Output = F

Source§

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

Source§

impl<F: Clone> Det for [[F; 1]; 1]
where Self: SquareMatrix,

Source§

type Output = F

Source§

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

Implementors§