-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom inverse retraction for StopWhenChangeLess
#144
Conversation
Codecov Report
@@ Coverage Diff @@
## master #144 +/- ##
==========================================
- Coverage 98.98% 98.71% -0.27%
==========================================
Files 51 51
Lines 3335 3335
==========================================
- Hits 3301 3292 -9
- Misses 34 43 +9
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
Does distance always accept a retraction? I was not yet aware of that. For me that seems a little strange since I thought distance always refers to exp/log (as a fallback with norm). Anything else would be only an approximate distance? |
Ah, I see, somehow I missed that |
Distance accepting an inverse retraction is a new addition from when I was fixing Chambolle-Pock. For StopWhenChangeLess sometimes an approximation to the exact distance would be enough I think. Here is the relevant PR: JuliaManifolds/ManifoldsBase.jl#119 . |
Oh I am not complaining about the possibility to have an approximate distance with the help of a retraction, I am just confused about the naming (and must have missed that point in the linked PR, I should have asked it there). |
Maybe we could resolve this even more general, that one (alternatively) can specify the field (defaulting to |
Sure, this stop condition could be improved further but maybe let's stop at having a better default in this PR? |
If you think this is too much work, sure; the only disadvantage I see is, that this introduces a generality that the future variant might not (again be able to) cover, so the more general change might be breaking |
I think whatever future design is going to be it should have the behavior from this PR as a default so the more general change should take it into account. This way users can just use this condition for tangent bundles without thinking that they don't have |
Hm, But you are right that might even be a breaking change in Manifolds and not necessarily here. So let‘s stay with your idea for now here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...and yes I should have noticed this naming problem in the linked PR but I did not sorry for that.
Ah, OK, so I think we can add that renaming issue to JuliaManifolds/Manifolds.jl#438 to keep track of it? |
Yes that would be a good idea, a problem why I stay a little vague is, that I do not have a good idea for that thing yet ( |
One small change so that
StopWhenChangeLess
can be used on, for example, tangent bundles.