Skip to content

Commit

Permalink
Use @fastmath
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal authored Oct 3, 2023
1 parent 9569535 commit b26054d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/levenberg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ function perform_step!(cache::LevenbergMarquardtCache{true})

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

0 comments on commit b26054d

Please sign in to comment.