jonathanfishbein1/linear-algebra/17.0.0

NOTE: the latest version is 30.0.0

SquareMatrix

A module for Square Matrix

Types

= SquareMatrix (Matrix a)

Square Matrix type

type alias InnerProductSpace a =
{ matrixSpace : MatrixSpace a
, innerProduct : Matrix a -> Matrix a -> Result String Float
, norm : Matrix a -> Result String Float
, distance : Matrix a -> Matrix a -> Result String Float
}

Type to represent an Inner Product Space

Values

zeroSquareMatrix : Field a -> Int -> SquareMatrix a

Create square Matrix with n dimension filled with zeros

realMatrixInnerProductSpace : InnerProductSpace Float

Real Numbered Inner Product Space for Matrix

Matrix Predicates and Properties

Predicate to determine if Matrix is symmetric

Dimension of the matrix

Determine whether a matirx is square

normReal : Matrix Float -> Result String Float

Calculate the norm of a Matrix

normComplex : Matrix (ComplexNumber Float) -> Result String Float

Calculate the norm of a Matrix

distanceReal : Matrix Float -> Matrix Float -> Result String Float

Calculate distance between two vectors

isRightStochastic : Matrix Float -> Bool

Predicate if matrix is right stochastic

isLeftStochastic : Matrix Float -> Bool

Predicate if matrix is left stochastic

Binary Operations

dotProduct : InnerProductSpace a -> Matrix a -> Matrix a -> Result String a

Calculate the dot product of two Matricies

Manipulation

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

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