diff --git a/test.py b/test.py index 7ee4505c0f86bb52b597bdacce1fc5333be1737d..c718c8698f6e657028d17b8c615c578a09b00e25 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)