Safe Haskell | Safe-Inferred |
---|

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

# 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

:: Integral α | |

=> SparseMatrix α | left-side matrix |

-> SparseVector (SparseVector α) | right-side vectors |

-> Maybe (SparseVector (SparseVector α)) | if one of systems has no solution |

Solves a set of systems for given left-side matrix and each right-side vector of given set (sparse vector)