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 f68249c commit 394727fCopy full SHA for 394727f
dpnp/backend/kernels/elementwise_functions/isclose.hpp
@@ -49,6 +49,8 @@ inline bool isclose(const T a,
49
const T atol,
50
const bool equal_nan)
51
{
52
+ static_assert(std::is_floating_point_v<T> || std::is_same_v<T, sycl::half>);
53
+
54
if (sycl::isfinite(a) && sycl::isfinite(b)) {
55
return sycl::fabs(a - b) <= atol + rtol * sycl::fabs(b);
56
}
0 commit comments