You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a cross-post with JuliaDiff/ForwardDiff.jl#604.
The rule for ldexp(x,y) always returns a Float64 regardless of the type of the first argument x.
This is because the rule is given by
Hi,
This is a cross-post with JuliaDiff/ForwardDiff.jl#604.
The rule for
ldexp(x,y)
always returns a Float64 regardless of the type of the first argumentx
.This is because the rule is given by
and since
y
is anInt
exp2
by default return a Float64. @mcabbott pointed out that if we change the rule tothen we should maintain the Float32 type throughout the computation.
The text was updated successfully, but these errors were encountered: