hops-0.7.2: Handy Operations on Power Series

CopyrightAnders Claesson 2015
MaintainerAnders Claesson <anders.claesson@gmail.com>
Safe HaskellNone
LanguageHaskell98

HOPS.Utils.Matrix

Description

License : BSD-3

Bare-bones matrix library; just enough to compute determinants.

Synopsis

Documentation

type Matrix a = Vector (Vector a) Source #

A Matrix is represented as a vector of vectors.

matrix :: [[a]] -> Matrix a Source #

Construct a matrix from a list of rows.

det :: (Eq a, Fractional a) => Matrix a -> a Source #

Matrix determinant. It is assumed that the matrix is square.