Repository navigation
Docs: Custom algorithms - #108
Merged
Merged
Conversation
lostella
self-requested a review
November 20, 2026 12:12
Collaborator
Author
|
once this has been merged, perhaps it's time for v0.7.1 |
lostella
requested changes
Nov 28, 2026
| function ProximalAlgorithms.value_and_gradient(f::LeastSquares, x) | ||
| tmp = f.A * x - f.b | ||
| fx = 0.5*norm(tmp, 2)^2 | ||
| dfx = f.A' * tmp |
Member
There was a problem hiding this comment.
In principle the function could have a coefficient lambda (default 1), which is not accounted here https://juliafirstorder.github.io/ProximalOperators.jl/latest/functions/#ProximalOperators.LeastSquares
Collaborator
Author
There was a problem hiding this comment.
The value f.lambda is now considered in value_and_gradient(f::LeastSquares, x). Is that what you meant?
lostella
requested changes
Nov 28, 2026
lostella
left a comment
Member
There was a problem hiding this comment.
Looks good overall! Only a small inline comment
lostella
approved these changes
Nov 28, 2026
lostella
referenced
this pull request
Nov 29, 2026
Co-authored-by: Alberto De Marchi <aldmarchi@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR is intended to the Custom algorithms section in the documentation, at https://juliafirstorder.github.io/ProximalAlgorithms.jl/stable/guide/custom_algorithms/.
This PR