-
-
Notifications
You must be signed in to change notification settings - Fork 481
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
change sorting for WeierstrassIsomorphism #34728
Comments
This comment has been minimized.
This comment has been minimized.
Reviewer: John Cremona |
comment:2
All looks good, and I agree with the sorting strategy. Two questions: (1) when p=2 in the random test is it still the case that the second auto in the list is multiplcation by -1? (2) In the test for the length of the autos, for the last two cases you don't really need to put both 0 and 1728 in the list since they are equal :) But I will not insist. As long as the answer to (1) is yes, you can take a positive review from me. |
This comment has been minimized.
This comment has been minimized.
comment:4
Thank you for the feedback! (2) Done. (1) The answer used to be no (I had incorrectly assumed that Since the new changes are not totally trivial, I'll let you have another look rather than setting it to positive review right away. Another question: Did you check all modifications in this branch or just the ones in "diff without the dependencies"? |
comment:5
I checked all. Can't check again right now as travelling. |
comment:6
Thanks for the two extra changes. I like that the new sorting key code ends up several lines shorter! |
comment:7
Thank you! I'll also boldly go ahead and set #34722 to positive review, since the changes there are contained in this branch — which you've reviewed. |
comment:8
Replying to Lorenz Panny:
OK fine |
Changed branch from public/sort_elliptic_curve_isomorphisms to |
Currently,
EllipticCurve_generic.automorphisms()
returns the automorphisms in a more or less arbitrary (albeit deterministic) order.It is much more natural to users to receive a list with the identity and negation first, since they exist for any curve, then any other automorphisms that may exist. (I have personally seen code making this incorrect assumption.)
In this patch, we change
._comparison_impl()
forWeierstrassIsomorphism
in such a way that[1]
and[-1]
will appear first in a sorted list of automorphisms.Diff without the dependencies: sagemath/sagetrac-mirror@d92c9f4...c9e9646
Depends on #34727
Depends on #34722
CC: @JohnCremona
Component: elliptic curves
Author: Lorenz Panny
Branch/Commit:
c9e9646
Reviewer: John Cremona
Issue created by migration from https://trac.sagemath.org/ticket/34728
The text was updated successfully, but these errors were encountered: