Skip to content

Commit

Permalink
formatting comment
Browse files Browse the repository at this point in the history
  • Loading branch information
matbesancon committed Dec 27, 2024
1 parent 13b4cba commit f572d97
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
3 changes: 1 addition & 2 deletions src/afw.jl
Original file line number Diff line number Diff line change
Expand Up @@ -445,8 +445,7 @@ function lazy_afw_step(x, gradient, lmo, active_set, phi, epsilon, d; use_extra_
away_step_taken = false
fw_step_taken = true
index = -1
#Lower our expectation for progress.
else
else # Lower our expectation for progress.
step_type = ST_DUALSTEP
phi = min(dual_gap, phi / 2.0)
gamma_max = zero(a_lambda)
Expand Down
3 changes: 1 addition & 2 deletions src/dicg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -533,8 +533,7 @@ function lazy_dicg_step(

if dual_gap >= phi / lazy_tolerance
d = muladd_memory_mode(memory_mode, d, a, v)
#Lower our expectation for progress.
else
else # Lower our expectation for progress.
d = muladd_memory_mode(memory_mode, d, a, v)
phi = min(dual_gap, phi / 2.0)
end
Expand Down
5 changes: 2 additions & 3 deletions src/pairwise.jl
Original file line number Diff line number Diff line change
Expand Up @@ -440,9 +440,8 @@ function lazy_pfw_step(
grad_dot_fw_vertex = fast_dot(v, gradient)
dual_gap = grad_dot_x - grad_dot_fw_vertex
if dual_gap >= phi / lazy_tolerance
d = muladd_memory_mode(memory_mode, d, a_local, v)
#Lower our expectation for progress.
else
d = muladd_memory_mode(memory_mode, d, a_local, v)
else # Lower our expectation for progress.
step_type = ST_DUALSTEP
phi = min(dual_gap, phi / 2.0)
end
Expand Down

0 comments on commit f572d97

Please sign in to comment.