Module

Data.Matrix.Algorithms

#det

det :: forall s a. CommutativeRing a => EuclideanRing a => Pos s => Matrix s s a -> a

calculate the determinant for matrix.

#inverse

inverse :: forall s a. Pos s => Field a => Matrix s s a -> Matrix s s a

Computes the multiplicative inverse of a regular matrix. The function uses Cramer's Rule for the computation.

#cofactor

cofactor :: forall s a. Pos s => EuclideanRing a => CommutativeRing a => Int -> Int -> Matrix s s a -> a

#cofactorMatrix

cofactorMatrix :: forall s a. Pos s => EuclideanRing a => Matrix s s a -> Matrix s s a

#adjunct

adjunct :: forall s a. Pos s => Field a => Matrix s s a -> Matrix s s a

Modules