Skip to content

Commit 99b1bce

Browse files
authored
Update cg.jl
1 parent 1c1eb9c commit 99b1bce

File tree

1 file changed

+1
-1
lines changed
  • src/multivariate/solvers/first_order

1 file changed

+1
-1
lines changed

src/multivariate/solvers/first_order/cg.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ function update_state!(d, state::ConjugateGradientState, method::ConjugateGradie
190190
state.y .= gradient(d) .- state.g_previous
191191
ydots = real(dot(state.y, state.s))
192192
copyto!(state.py, state.pg) # below, store pg - pg_previous in py
193-
# P already updated in _inverse_precondition above
193+
# P already updated in _apply_precondprep above
194194
__precondition!(state.pg, method.P, gradient(d))
195195

196196
state.py .= state.pg .- state.py

0 commit comments

Comments
 (0)