mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-06-29 16:29:27 +02:00
feat: guard added to linalg.eig and tests expect NotImplementedError.
This commit is contained in:
parent
13ace62262
commit
50d975a181
2 changed files with 9 additions and 0 deletions
|
@ -312,6 +312,13 @@ def test_matrix_functions():
|
|||
|
||||
for (i, j), entry in np.ndenumerate(diff):
|
||||
assert entry.is_zero()
|
||||
else:
|
||||
with pytest.raises(NotImplementedError):
|
||||
pe.linalg.eigh(sym)
|
||||
with pytest.raises(NotImplementedError):
|
||||
pe.linalg.eig(sym)
|
||||
with pytest.raises(NotImplementedError):
|
||||
pe.linalg.svd(sym)
|
||||
|
||||
# Check determinant
|
||||
assert pe.linalg.det(np.diag(np.diag(matrix))) == np.prod(np.diag(matrix))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue