From f572d979df45c78f07f9ff46b8e108bcb93abfd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathieu=20Besan=C3=A7on?= Date: Fri, 27 Dec 2024 12:14:32 +0100 Subject: [PATCH] formatting comment --- src/afw.jl | 3 +-- src/dicg.jl | 3 +-- src/pairwise.jl | 5 ++--- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/afw.jl b/src/afw.jl index 14fefdbbc..741025eed 100644 --- a/src/afw.jl +++ b/src/afw.jl @@ -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) diff --git a/src/dicg.jl b/src/dicg.jl index 1140ca8fe..8d92ea9de 100644 --- a/src/dicg.jl +++ b/src/dicg.jl @@ -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 diff --git a/src/pairwise.jl b/src/pairwise.jl index 1083a92ac..b9bdb6ad0 100644 --- a/src/pairwise.jl +++ b/src/pairwise.jl @@ -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