Gaussian elimination: Difference between revisions
m
→From scratch
m (→From scratch) |
m (→From scratch) |
||
Line 1,418:
isMatrix xs = null xs || all ((== (length.head $ xs)).length) xs
multiply:: Num a => [[a]] -> [[a]] -> [[a]]
Line 1,433:
solveGauss:: (Fractional a, Ord a) => [[a]] -> [[a]] -> [[a]]
solveGauss xs bs | null xs || null bs || length xs /= length bs || (not $
| otherwise = uncurry solveTriangle $ triangle xs bs
|