Commit da69b887 authored by Markus Holzer's avatar Markus Holzer
Browse files

Implemented trigonometry functions good

parent 5c062c6b
Pipeline #36960 failed with stages
in 3 minutes and 42 seconds
......@@ -63,4 +63,5 @@ def test_single_arguments(dtype, func, target):
dh.run_kernel(kernel)
dh.all_to_cpu()
np.testing.assert_allclose(dh.gather_array("x")[0, 0], float(func(1.0).evalf()))
np.testing.assert_allclose(dh.gather_array("x")[0, 0], float(func(1.0).evalf()),
rtol=10**-3 if dtype == 'float32' else 10**-5)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment