We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1da2e28 commit def82edCopy full SHA for def82ed
src/device/cuda/math.jl
@@ -35,6 +35,8 @@
35
# ! CUDAnative.atan2 is equivalent to Base.atan
36
@inline atan2(x::Float64, y::Float64) = ccall("extern __nv_atan2", llvmcall, Cdouble, (Cdouble, Cdouble), x, y)
37
@inline atan2(x::Float32, y::Float32) = ccall("extern __nv_atan2f", llvmcall, Cfloat, (Cfloat, Cfloat), x, y)
38
+@inline atan(x::Float64, y::Float64) = atan2(x, y)
39
+@inline atan(x::Float32, y::Float32) = atan2(x, y)
40
41
@inline angle(x::ComplexF64) = atan2(x.im, x.re)
42
@inline angle(x::ComplexF32) = atan2(x.im, x.re)
0 commit comments