Skip to content

Commit

Permalink
Fix a typo in cgls.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison committed Oct 16, 2024
1 parent 9f50cff commit 9caf674
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cgls.jl
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ kwargs_cgls = (:M, :ldiv, :radius, :λ, :atol, :rtol, :itmax, :timemax, :verbose
Mq = MisI ? q : solver.Mr

@kfill!(x, zero(FC))
@copy!(m, r, b) # r ← b
@kcopy!(m, r, b) # r ← b
bNorm = @knrm2(m, r) # Marginally faster than norm(b)
if bNorm == 0
stats.niter = 0
Expand Down

0 comments on commit 9caf674

Please sign in to comment.