We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 400eebd commit 303b5e0Copy full SHA for 303b5e0
src/LM_alg.jl
@@ -127,7 +127,7 @@ function LM(
127
Jt_Fk = similar(∇fk)
128
129
σmax = opnorm(Jk)
130
- νInv = (σmax^2 + σk) / θ # ‖J'J + σₖ I‖ = ‖J‖² + σₖ
+ νInv = (1 + θ) * (σmax^2 + σk) # ‖J'J + σₖ I‖ = ‖J‖² + σₖ
131
132
s = zero(xk)
133
@@ -259,7 +259,7 @@ function LM(
259
if ρk < η1 || ρk == Inf
260
σk = σk * γ
261
end
262
263
tired = k ≥ maxIter || elapsed_time > maxTime
264
265
0 commit comments