We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7289e00 commit 58fa68fCopy full SHA for 58fa68f
mkl_fft/tests/test_interfaces.py
@@ -43,8 +43,8 @@ def test_scipy_fft(norm, dtype):
43
x = np.ones(511, dtype=dtype)
44
w = mfi.scipy_fft.fft(x, norm=norm, workers=None, plan=None)
45
xx = mfi.scipy_fft.ifft(w, norm=norm, workers=None, plan=None)
46
- tol = 64 * np.finfo(np.dtype(dtype)).eps
47
- assert np.allclose(x, xx, atol=tol, rtol=tol)
+ tol = 128 * np.finfo(np.dtype(dtype)).eps
+ np.testing.assert_allclose(x, xx, atol=tol, rtol=tol)
48
49
50
@pytest.mark.parametrize('norm', [None, "forward", "backward", "ortho"])
@@ -53,8 +53,8 @@ def test_numpy_fft(norm, dtype):
53
54
w = mfi.numpy_fft.fft(x, norm=norm)
55
xx = mfi.numpy_fft.ifft(w, norm=norm)
56
57
58
59
60
0 commit comments