sparse-linear-algebra

Anonymous Coward 2018-03-05 14:24:32.006771 UTC

1Prelude> :m + Numeric.LinearAlgebra.Sparse
2Prelude Numeric.LinearAlgebra.Sparse> :m + Data.Sparse.SpMatrix
3Prelude Numeric.LinearAlgebra.Sparse Data.Sparse.SpMatrix> let m = eye 1 :: SpMatrix Double
4Prelude Numeric.LinearAlgebra.Sparse Data.Sparse.SpMatrix> lu m
5
6<interactive>:4:1: error:
7Couldn't match typeNumeric.LinearAlgebra.Class.Scalar
8 (Data.Sparse.SpVector.SpVector Double)’
9 with ‘Double
10 arising from a use of ‘lu’
11In the expression: lu m
12 In an equation for ‘it’: it = lu m