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 5ebd6c3 commit 2bd78baCopy full SHA for 2bd78ba
dpctl/tensor/libtensor/include/kernels/elementwise_functions/proj.hpp
@@ -72,7 +72,7 @@ template <typename argT, typename resT> struct ProjFunctor
72
const realT y = std::imag(in);
73
74
if (std::isinf(x) || std::isinf(y)) {
75
- const realT res_im = std::copysign(0.0, y);
+ const realT res_im = std::copysign(realT(0), y);
76
return resT{std::numeric_limits<realT>::infinity(), res_im};
77
}
78
return in;
0 commit comments