jonathanfishbein1/linear-algebra/1.0.0

NOTE: the latest version is 30.0.0

Matrix

A module for Matrix

Types

type Matrix a
= Matrix (List (Vector a))

Matrix type

addRealMatrices : Matrix number -> Matrix number -> Matrix number

Add two Real Matrices together

Matrix (ComplexNumberCartesian number)
-> Matrix (ComplexNumberCartesian number)
-> Matrix (ComplexNumberCartesian number)

Add two Complex Matrices together

sumRealMatrices : Matrix number -> Monoid (Matrix number)

Monoidally add two Real numbered Matrices together

Matrix (ComplexNumberCartesian number)
-> Monoid (Matrix (ComplexNumberCartesian number))

Monoidally add two Complex numbered Matrices together

map : (a -> b) -> Matrix a -> Matrix b

Map over a Matrix

equal : (a -> a -> Bool) -> Matrix a -> Matrix a -> Bool

Compare two Matrices for equality

Transpose a Matrix

Matrix (ComplexNumberCartesian number)
-> Matrix (ComplexNumberCartesian number)

Take the complex conjugate of a Complex Numbered Matrix

Matrix (ComplexNumberCartesian number)
-> Matrix (ComplexNumberCartesian number)

Perform the adjoint operation on a Complex Numbered Matrix

apply : Matrix (a -> b) -> Matrix a -> Matrix b

Apply for Matrix

liftA2 : (a -> b -> c) -> Matrix a -> Matrix b -> Matrix c

Lift a function to work on Matrix

Matrix (Vector (ComplexNumberCartesian number))
-> Matrix (Vector (ComplexNumberCartesian number))
-> Matrix (Vector (ComplexNumberCartesian number))

Matrix Matrix multiplication for a Complex Numbered Matrix

multiplyRealMatrices : Matrix number -> Matrix number -> Matrix number

Matrix Matrix multiplication for a Real Numbered Matrix