Trait MatDeterminant

Source
pub trait MatDeterminant<T> {
    // Required method
    fn determinant(&self) -> T;
}
Expand description

trait for square matrices to compute determinant

Required Methods§

Source

fn determinant(&self) -> T

return the determinant of the matrix as scalar T

Implementors§

Source§

impl<T> MatDeterminant<T> for Mat2<T>
where T: Number,

Source§

impl<T> MatDeterminant<T> for Mat3<T>
where T: Number,

Source§

impl<T> MatDeterminant<T> for Mat4<T>
where T: Number,

returns the 4x4 determinant using laplace expansion theorum