Changes between Initial Version and Version 1 of Ticket #16743, comment 10

09/24/14 13:27:33 (6 years ago)


  • Ticket #16743, comment 10

    initial v1  
    1 Good point, will do.
     1Good point, will do.  It's clear for prime_ideals() and hnf_cmp() BUT in the latter case there is already a cmp function for ideals which is very similar but not good for my purposes:  it does not first compare norms, and it uses the pari_hnf directly.  So The simplest thing to do (replace the existing ideal cmp with mine) may cause a lot of annoying doctest changes.  I'll try and see.
     3curve_cmp() can be a method of the class for elliptic curves over number fields, or even (almost) for generic elliptic curves as it uses no special number field stuff, just compares the list of a-invariants. Not quite since I replace each ai with its list of coefficients and flatten to get a list of 5*d rational numbers where d is the degree of the field.
     5curve_cmp_cm() is a bit of an experiment:  for curves with (rational) CM only.
     7I really need these comparison functions for ordering of the elliptic curves in a single isogeny class in a deterministic way.  For CM isogeny classes it is nicer to group together the curves whose Endomorphism ring is the same (they are all orders in the same imaginary quadratic field, but can have different indices in the maximal order).  So curve_cmp_cm() is only really relevant in the context of isogeny classes.  Comments?
     9Lastly there are a couple of utility functions concerning binary quadratic forms, which I will put elsewhere.