sparse-lin-alg-0.3: Small library for effective linear algebra on sparse matrices

Safe HaskellSafe-Infered

Math.LinearAlgebra.Sparse.Algorithms.SolveLinear

Synopsis

Documentation

solveLinear :: Integral α => SparseMatrix α -> SparseVector α -> Maybe (SparseVector α)Source

Just solves system of linear equations in matrix form for given left-side matrix and right-side vector

solveLinSystems :: Integral α => SparseMatrix α -> SparseMatrix α -> SparseMatrix αSource

Solves a system in form:

>>> 4x3       3x5         4x5
>>> [     ]   [       ]   [       ]
>>> [  m  ] × [   x   ] = [   b   ]
>>> [     ]   [       ]   [       ]
>>> [     ]               [       ]

solveLinSystems m b returns solution matrix x