Skip to content

Format prox! functions according to ProximalOperators package - #161

Draft
BenjaminPINEAU wants to merge 4 commits into
JuliaSmoothOptimizers:masterfrom
BenjaminPINEAU:format_prox
Draft

Format prox! functions according to ProximalOperators package#161
BenjaminPINEAU wants to merge 4 commits into
JuliaSmoothOptimizers:masterfrom
BenjaminPINEAU:format_prox

Conversation

@BenjaminPINEAU

Copy link
Copy Markdown
Contributor

Fix prox! return value: return $h(prox(x))$ instead of the prox vector

All prox! functions now return the scalar value $h(y)$ where $y = prox_{σh}(x)$, instead of returning y itself. This is necessary for correct computation of the Moreau envelope $h_μ(z) = h(prox_{μh}(z)) + 1/(2μ)‖z - prox_{μh}(z)‖²$.

The prox() wrapper (which returns the prox vector) is unchanged.

Fixes #160

@BenjaminPINEAU
BenjaminPINEAU marked this pull request as draft July 3, 2026 15:32
@MaxenceGollier

Copy link
Copy Markdown
Collaborator

rebase

@codecov

codecov Bot commented Jul 24, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 88.80000% with 14 lines in your changes missing coverage. Please review.
✅ Project coverage is 78.71%. Comparing base (753a97f) to head (115ebf4).
⚠️ Report is 30 commits behind head on master.

Files with missing lines Patch % Lines
src/shiftedGroupNormL2Box.jl 90.74% 5 Missing ⚠️
src/cappedl1.jl 0.00% 3 Missing ⚠️
src/shiftedRootNormLhalf.jl 0.00% 3 Missing ⚠️
src/shiftedIndBallL0.jl 0.00% 1 Missing ⚠️
src/shiftedIndBallL0BInf.jl 0.00% 1 Missing ⚠️
src/shiftedNormL1Box.jl 83.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #161      +/-   ##
==========================================
+ Coverage   73.71%   78.71%   +4.99%     
==========================================
  Files          22       25       +3     
  Lines         898     1076     +178     
==========================================
+ Hits          662      847     +185     
+ Misses        236      229       -7     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Values returned by prox! function

2 participants