-
Notifications
You must be signed in to change notification settings - Fork 62
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
Minor bug with rand
at Identity
#665
Comments
We changed random tangent vector generation slightly, since for non-array-represetnations (struct) we had to fix the tangent vector allocation. I am quite sure it does not hide a potentially more harmful bug, we just missed to transform the But you are right, reintroducing that would surely be nice. |
Thanks for reporting it. I've made a PR that fixes this issue for some groups (I don't really see a good way to solve it without doing group-specific additions). |
I have a suggestion regarding that: what about making The advantage: the error message for a missing such |
I'm not sure about deprecating |
Yes I think we introduced the |
Then it would be more useful to the user to have a dedicated function, like Again, the main advantage is that you can implement a general fallback, or have much better error messages, when I also think it's easier to use and remember than the |
We discussed that quite a while back (maybe a few years) where we indeed hat In the current form, the We also abandoned throwing our own error messages, because the |
Mmh, I cannot see that As to the errors, I agree. As I said above, you would get a nice I'll leave it to you to decide what is best for the users. |
we had The error above is still not one we throw but due to the decorator pattern we employ (in order to implement several metrics for one manifold for example). On the other hand |
I'm trying the very last version of the
Manifolds
ecosystem (love it so far!), and the following code that worked before doesn't anymore:It's not a big deal, as
rand(G; vector_at=identity_element(G))
does work, but perhaps it could hide a potentially more harmful bug? If not, feel free to close the issue right away.The text was updated successfully, but these errors were encountered: