Skip to content
This repository was archived by the owner on May 27, 2021. It is now read-only.

Commit 0a6fe26

Browse files
authored
Fix angle for real numbers
1 parent 6f3d8a4 commit 0a6fe26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/device/cuda/math.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838

3939
@inline angle(x::ComplexF64) = atan2(x.im, x.re)
4040
@inline angle(x::ComplexF32) = atan2(x.im, x.re)
41-
@inline angle(x::Float64) = signbit(x) * -3.141592653589793
42-
@inline angle(x::Float32) = signbit(x) * -3.1415927f0
41+
@inline angle(x::Float64) = signbit(x) * 3.141592653589793
42+
@inline angle(x::Float32) = signbit(x) * 3.1415927f0
4343

4444
## hyperbolic
4545

0 commit comments

Comments
 (0)