Module
LinearAlgebra.Matrix
- Package
- purescript-linalg
- Repository
- gbagan/purescript-linalg
#identity Source
identity :: forall a. Field a => Int -> Matrix a
computes the identity matrix of size n https://en.wikipedia.org/wiki/Identity_matrix
#transpose Source
transpose :: forall a. Matrix a -> Matrix a
computes the transpose of the matrix https://en.wikipedia.org/wiki/Transpose
#smult Source
smult :: forall a. Semiring a => a -> Matrix a -> Matrix a
computes the (left) scalar multiplication of a matrice https://en.wikipedia.org/wiki/Scalar_multiplication
#gaussJordan Source
gaussJordan :: forall a. Eq a => Field a => Matrix a -> { det :: a, mat :: Matrix a }
computes the reduced row echelon form of the matrix and compute its determinant if the matrix is square see https://en.wikipedia.org/wiki/Row_echelon_form
#trace Source
trace :: forall a. Eq a => Semiring a => Matrix a -> a
computes the trace of the matrix https://en.wikipedia.org/wiki/Trace_(linear_algebra)
#determinant Source
determinant :: forall a. Eq a => Field a => Matrix a -> a
computes the determinant of a square matrix https://en.wikipedia.org/wiki/Determinant