Skip to content

Commit

Permalink
Use @fastmath
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Oct 3, 2023
1 parent 9569535 commit 0b4b5b9
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))

Check warning on line 228 in src/levenberg.jl

View check run for this annotation

Codecov / codecov/patch

src/levenberg.jl#L228

Added line #L228 was not covered by tests
@. 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 0b4b5b9

Please sign in to comment.