Type Alias Mat2

Source
pub type Mat2<E, Descriptor> = Mat<2, 2, E, Descriptor>;

Aliased Type§

pub struct Mat2<E, Descriptor>(/* private fields */);

Implementations§

Source§

impl<E, Descriptor> Mat2<E, Descriptor>
where E: MatEl + NdFloat, Descriptor: Descriptor, Self: RawSliceMut<Scalar = E> + ScalarMut<Scalar = E, Index = Ix2> + ConstLayout<Index = Ix2> + IndexingMut<Scalar = E, Index = Ix2>,

Source

pub fn determinant(&self) -> E

Computes the determinant of the matrix

Source

pub fn inverse(&self) -> Option<Self>

Computes the inverse of the matrix. If the determinant is zero - return None