Module

Data.Matrix.Algorithms

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

#det Source

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

calculate determinant for matrix.

#inverse Source

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

#cofactor Source

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

#cofactorMatrix Source

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

#luDecomp Source

luDecomp :: forall a w h. 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 !