Skip to content

Commit 0b4b5b9

Browse files
committed
Use @fastmath
1 parent 9569535 commit 0b4b5b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/levenberg.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ function perform_step!(cache::LevenbergMarquardtCache{true})
225225

226226
# Require acceptable steps to satisfy the following condition.
227227
norm_v = norm(v)
228-
if 1 + log2(norm(cache.a)) - log2(norm_v) log2(α_geodesic)
228+
if @fastmath((1 + log2(norm(cache.a)) - log2(norm_v))log2(α_geodesic))
229229
@. cache.δ = v + cache.a / 2
230230
@unpack δ, loss_old, norm_v_old, v_old, b_uphill = cache
231231
f(cache.fu_tmp, u .+ δ, p)

0 commit comments

Comments
 (0)