Skip to content

Commit

Permalink
actually disable det of 0 matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
EiffL committed Oct 17, 2020
1 parent 181ac19 commit c84bfed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_sparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,6 @@ def test_det():
]
)
assert_array_equal(-det(-X), det(X))
assert_array_equal(det(0.0 * X), 0.0)
# TODO: Add proper support for 0 matrix
# assert_array_equal(det(0.0 * X), 0.0)
assert_allclose(det(X), np.linalg.det(to_dense(X)), rtol=1e-6)

0 comments on commit c84bfed

Please sign in to comment.