Skip to content

Commit

Permalink
Update levenberg_marquardt.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieugomez authored Nov 8, 2024
1 parent c3d365b commit 979e03e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/optimizer/levenberg_marquardt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function optimize!(
need_jacobian = false
end
colsumabs2!(dtd, J)
# this alows clamp! to be scaling irrelevant
# this ensures that the operation in clamp! is scaling irrelevant
dtd_mean = sum(dtd) / length(dtd)
clamp!(dtd, MIN_DIAGONAL * dtd_mean, MAX_DIAGONAL * dtd_mean)
rmul!(dtd, 1/Δ)
Expand Down

0 comments on commit 979e03e

Please sign in to comment.