mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-15 03:53:41 +02:00
Merge branch 'develop' into documentation
This commit is contained in:
commit
044a54906a
3 changed files with 28 additions and 9 deletions
|
@ -92,6 +92,19 @@ def test_multi_dot():
|
|||
assert e.is_zero(), t
|
||||
|
||||
|
||||
def test_jack_multi_dot():
|
||||
for dim in [2, 4, 8]:
|
||||
my_array = get_real_matrix(dim)
|
||||
|
||||
tt = pe.linalg.jack_matmul(my_array, my_array, my_array) - pe.linalg.matmul(my_array, my_array, my_array)
|
||||
|
||||
for t, e in np.ndenumerate(tt):
|
||||
e.gamma_method()
|
||||
assert e.is_zero_within_error(0.01)
|
||||
assert e.is_zero(atol=1e-1), t
|
||||
assert np.isclose(e.value, 0.0)
|
||||
|
||||
|
||||
def test_matmul_irregular_histories():
|
||||
dim = 2
|
||||
length = 500
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue