Skip to content

rref gives Left "Attempt to invert a non-invertible matrix" #5

Description

@yura

Looks like rref gives wrong results:

rref <$> (fromLists [[1, 2, 1], [(-2), (-3), 1], [3, 5, 0]] :: Maybe (Matrix 3 3 Double))

gives:

Just (Left "Attempt to invert a non-invertible matrix")

Although Python's sympy gives:

m = Matrix([[1,2,1], [-2,-3,1], [3,5,0]])
m.rref()

(Matrix([
 [1, 0, -5],
 [0, 1,  3],
 [0, 0,  0]]), (0, 1))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions