Module
Data.LinearAlgebra.Matrix
- Package
- purescript-linalg
- Repository
- gbagan/purescript-linalg
#eye Source
eye :: forall a. Semiring a => Int -> Matrix a
computes the identity matrix of dimension nxn https://en.wikipedia.org/wiki/Identity_matrix
#scale Source
scale :: forall a. Semiring a => a -> Matrix a -> Matrix a
computes the (left) scalar multiplication of a matrice https://en.wikipedia.org/wiki/Scalar_multiplication
#transpose Source
transpose :: forall a. Matrix a -> Matrix a
computes the transpose of the matrix https://en.wikipedia.org/wiki/Transpose
#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
#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)
#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