pub trait MatDeterminant<T> {
// Required method
fn determinant(&self) -> T;
}
Expand description
trait for square matrices to compute determinant
Required Methods§
Sourcefn determinant(&self) -> T
fn determinant(&self) -> T
return the determinant of the matrix as scalar T
Implementors§
impl<T> MatDeterminant<T> for Mat2<T>where
T: Number,
impl<T> MatDeterminant<T> for Mat3<T>where
T: Number,
impl<T> MatDeterminant<T> for Mat4<T>where
T: Number,
returns the 4x4 determinant using laplace expansion theorum