From 20f3b84b753a492488ac3e609e6afade74344c75 Mon Sep 17 00:00:00 2001 From: Martin Reinecke Date: Sat, 20 Jul 2019 13:13:47 +0200 Subject: [PATCH] remove relaxed tolerances --- test.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/test.py b/test.py index 7ee4505..c718c86 100644 --- a/test.py +++ b/test.py @@ -204,9 +204,6 @@ def testdcst1D(len, inorm, type, dtype): a = (np.random.rand(len)-0.5).astype(dtype) eps = tol[dtype] itp = (0, 1, 3, 2, 4) - if type==4 and len%2 == 1: # relaxed accuracies for odd-length type 4 transforms - special_tol = {np.float32: 4e-5, np.float64: 6e-14, np.longfloat: 4e-17} - eps = special_tol[dtype] itype = itp[type] if type != 1 or len > 1: # there are no length-1 type 1 DCTs _assert_close(a, pypocketfft.dct(pypocketfft.dct(a, inorm=inorm, type=type), inorm=2-inorm, type=itype), eps) -- GitLab