Skip to content

Commit 496eb5c

Browse files
Apply suggestions from code review
Co-authored-by: Dominique <[email protected]>
1 parent 8b438e8 commit 496eb5c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/LM_alg.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ function LM(
249249
jtprod_residual!(nls, xk, Fk, ∇fk)
250250

251251
# update opnorm if not linear least squares
252-
if nonlinear == true
252+
if nonlinear
253253
σmax = opnorm(Jk)
254254
end
255255

@@ -260,7 +260,6 @@ function LM(
260260
σk = σk * γ
261261
end
262262
νInv = (1 + θ) * (σmax^2 + σk) # ‖J'J + σₖ I‖ = ‖J‖² + σₖ
263-
264263
tired = k maxIter || elapsed_time > maxTime
265264
end
266265

0 commit comments

Comments
 (0)