Skip to content
This repository has been archived by the owner on Jan 25, 2021. It is now read-only.

Commit

Permalink
Properly replace numpy matrices in test_linalg.py
Browse files Browse the repository at this point in the history
Drop tests of norm, tril and triu for numpy matrices.
  • Loading branch information
Alexander Blech committed May 2, 2019
1 parent a0fc992 commit 1fa4bdf
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tests/test_linalg.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ def test_norm():
"""Test calculation of norm for matrix in varying formats"""
A = np.diag([1, 1, 1, 1])
assert abs(norm(A) - 2.0) < 1e-12
assert abs(norm(np.array(A)) - 2.0) < 1e-12
assert abs(norm(scipy.sparse.coo_matrix(A)) - 2.0) < 1e-12


Expand All @@ -25,8 +24,6 @@ def test_triu_tril():
)
assert norm(A_u - triu(A)) < 1e-12
assert norm(A_l - tril(A)) < 1e-12
assert norm(np.array(A_u) - triu(np.array((A)))) < 1e-12
assert norm(np.array(A_l) - tril(np.array((A)))) < 1e-12
assert (
norm(scipy.sparse.coo_matrix(A_u) - triu(scipy.sparse.coo_matrix((A))))
< 1e-12
Expand Down

0 comments on commit 1fa4bdf

Please sign in to comment.