Skip to content

Commit bab3793

Browse files
committed
more finite or zero
1 parent 9a09989 commit bab3793

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/methods.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,7 @@ function _estimate_magnitudes(
391391
_compute_estimate(m, fs, x, step, m.coefs_neighbourhood[2]),
392392
_compute_estimate(m, fs, x, step, m.coefs_neighbourhood[3])
393393
)
394+
∇fs = finite_or_zero(∇fs)
394395
∇f_magnitude = maximum(maximum.(abs, ∇fs))
395396
# Estimate magnitude of `f` in a neighbourhood of `x`.
396397
f_magnitude = maximum(maximum.(abs, fs))

0 commit comments

Comments
 (0)