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 a4f86b5 commit 5a5f2e6Copy full SHA for 5a5f2e6
dpnp/backend/kernels/elementwise_functions/erfcx.hpp
@@ -28,7 +28,7 @@
28
29
#pragma once
30
31
-#include <cmath>
+#include <limits>
32
#include <sycl/sycl.hpp>
33
34
namespace dpnp::kernels::erfs::impl
@@ -1646,7 +1646,7 @@ Tp erfcx(Tp x)
1646
}
1647
1648
return x < -26.7
1649
- ? std::HUGE_VAL
+ ? std::numeric_limits<Tp>::infinity()
1650
: (x < -6.1 ? 2 * sycl::exp(x * x)
1651
: 2 * sycl::exp(x * x) - erfcx_y100(400 / (4 - x)));
1652
0 commit comments