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.
91-broken-internals
2 parents f00fdda + 30232f0 commit 7bc85efCopy full SHA for 7bc85ef
src/newton.jl
@@ -131,10 +131,8 @@ function extend_leja!(
131
@inbounds for i = lbound(newpoints, 1):(u-i_add)
132
p::Float64 = 1
133
@inbounds for j = 0:(n+i_add-1) # existing Leja points
134
- # Note: the following two lines are optimized for performance,
135
- # using internals from the native `Δ^exponent`
136
- Δ = reinterpret(UInt64, abs(newpoints[i] - leja[j]))
137
- @inline p = p * Base.Math.pow_body(Δ, exponent)
+ Δ = abs(newpoints[i] - leja[j])
+ p = p * Δ^exponent
138
end
139
if p > p_max
140
p_max = p
0 commit comments