jonathanfishbein1/linear-algebra/25.3.0

NOTE: the latest version is 30.0.0

NormalMatrix

A module for Normal Matrix

Types

= NormalMatrix (SquareMatrix a)

Symmetric Matrix type

Constructors

Create a Matrix from a list of Column Vectors

identity : Field a -> Int -> NormalMatrix a

Create Square Identity Matrix with n dimension

Matrix Predicates and Properties

Dimension of the matrix

isNormalMatrix : InnerProductSpace a -> SquareMatrix a -> Bool

Predicate to determine if Matrix is normal

getDiagonalProduct : Field a -> NormalMatrix a -> Maybe a

Get the Product of the diagonal of a Matrix

subMatrix : Int -> Int -> Int -> Int -> NormalMatrix a -> NormalMatrix a

Calculate the submatrix given a starting and ending row and column index

Transpose a Matrix

Unitary Operations

Scalar multiplication over a Square Matrix

NormalMatrix (ComplexNumber number)
-> NormalMatrix (ComplexNumber number)

Perform the adjoint operation on a Complex Numbered Matrix

Binary Operations

add : Field a -> NormalMatrix a -> NormalMatrix a -> NormalMatrix a

Add two NormalMatrix together

InnerProductSpace a
-> Result String (NormalMatrix a)

Square Matrix Square Matrix multiplication

InnerProductSpace a
-> Result String (ColumnVector a)

Multiply a Vector by a Matrix

Subtract two Square Matrices

Manipulation

getAt : ( Int, Int ) -> NormalMatrix a -> Maybe a

Get the value in a matrix at the specified row and column

Monoid

Append Matricies together horizontally

Equality

equal : (a -> a -> Bool) -> Equality (NormalMatrix a)

Compare two matricies using comparator

equalImplementation : (a -> a -> Bool) -> NormalMatrix a -> NormalMatrix a -> Bool

Compare two Matrices for equality

Matrix Forms

gaussJordan : VectorSpace a -> NormalMatrix a -> NormalMatrix a

Function composition of Gaussian Elimination and Jordan Elimination

upperTriangle : VectorSpace a -> NormalMatrix a -> NormalMatrix a

Put a matrix into Upper Triangular Form