You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trac #34728: change sorting for WeierstrassIsomorphism
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()` for
`WeierstrassIsomorphism` in such a way that `[1]` and `[-1]` will appear
first in a sorted list of automorphisms.
Diff without the dependencies: https://git.sagemath.org/sage.git/diff?id
2=d92c9f4e4f671409ff695f4f294240492dbe7c86&id=c9e964632bdfd95c1f89557a5c
7e1ef1c78a794a
URL: https://trac.sagemath.org/34728
Reported by: lorenz
Ticket author(s): Lorenz Panny
Reviewer(s): John Cremona
0 commit comments