mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-14 19:43:41 +02:00
expand_deltas renamed to _expand_deltas and made a function instead of
class method
This commit is contained in:
parent
b80b746fae
commit
d26bbdc3bd
2 changed files with 28 additions and 22 deletions
|
@ -90,8 +90,10 @@ def test_irregular_matrix_inverse():
|
|||
|
||||
assert np.allclose(np.linalg.inv(np.vectorize(lambda x: x.value)(invertible_irregular_matrix)) - np.vectorize(lambda x: x.value)(inverse), 0.0)
|
||||
|
||||
check = pe.linalg.matmul(invertible_irregular_matrix, inverse)
|
||||
assert np.all([o.is_zero() for o in (check - np.identity(dim)).ravel()])
|
||||
check1 = pe.linalg.matmul(invertible_irregular_matrix, inverse)
|
||||
assert np.all([o.is_zero() for o in (check1 - np.identity(dim)).ravel()])
|
||||
check2 = invertible_irregular_matrix @ inverse
|
||||
assert np.all([o.is_zero() for o in (check2 - np.identity(dim)).ravel()])
|
||||
|
||||
|
||||
def test_matrix_inverse():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue