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

Commit

Permalink
Merge pull request #516 from PhilipVinc/PhilipVinc-patch-1
Browse files Browse the repository at this point in the history
fix CuArrays.jl #543 - complex exp type instability
  • Loading branch information
maleadt committed Dec 23, 2019
2 parents 2e83fc6 + 25854c3 commit 9497d08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/device/cuda/math.jl
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@
@inline ldexp(x::Float32, y::Int32) = @wrap __nv_ldexpf(x::float, y::i32)::float

@inline exp(x::Complex{Float64}) = exp(x.re) * (cos(x.im) + 1.0im * sin(x.im))
@inline exp(x::Complex{Float32}) = exp(x.re) * (cos(x.im) + 1.0im * sin(x.im))
@inline exp_fast(x::Complex{Float32}) = exp_fast(x.re) * (cos_fast(x.im) + 1.0im * sin_fast(x.im))
@inline exp(x::Complex{Float32}) = exp(x.re) * (cos(x.im) + 1.0f0im * sin(x.im))
@inline exp_fast(x::Complex{Float32}) = exp_fast(x.re) * (cos_fast(x.im) + 1.0f0im * sin_fast(x.im))

## error

Expand Down

0 comments on commit 9497d08

Please sign in to comment.