We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce27131 commit 7dd1e2bCopy full SHA for 7dd1e2b
1 file changed
tests/test_linearize.py
@@ -686,4 +686,6 @@ def test_cire_n_strides():
686
op0.apply(time_M=10)
687
op2.apply(time_M=10, u=u1)
688
689
- assert np.all(u.data == u1.data)
+ # NOTE: not exact equality because `op2` slightly changes the order of
690
+ # arithmetic operations, which in turn causes some rounding differences
691
+ assert np.allclose(u.data, u1.data, rtol=1e-5)
0 commit comments