Merge branch 'develop' into documentation

This commit is contained in:
fjosw 2021-11-18 11:18:05 +00:00
commit 044a54906a
3 changed files with 28 additions and 9 deletions

View file

@ -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