Module

Data.Matrix.Algorithms

Package
purescript-sized-matrices
Repository
csicar/purescript-sized-matrices

#det Source

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

calculate determinant for matrix.

#inverse Source

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

#cofactor Source

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

#cofactorMatrix Source

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

#luDecomp Source

luDecomp :: forall h w a. Ord a => EuclideanRing a => Pos w => Pos h => Matrix h w a -> LuDecomp h w a

given a invertable matrix A with non-zero-able diagonal returns a tuple of L and R with the property: A = L*R ! not yet correct !