-
-
Notifications
You must be signed in to change notification settings - Fork 491
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
make PARI the default for EllipticCurve_field.weierstrass_p() #33223
Comments
This comment has been minimized.
This comment has been minimized.
Dependencies: #33224 |
Author: Lorenz Panny |
New commits:
|
Commit: |
Branch: public/use_pari_ellwp_by_default |
comment:5
I confirm the new default is better:
While reviewing, I noticed typos in the documentation:
I suggest to fix as follows: - - ``mprec`` - precision
+ - ``prec`` - precision
- - ``algorithm`` - string (default:``None``) an algorithm identifier
- indicating using the ``pari``, ``fast`` or ``quadratic``
- algorithm. If the algorithm is ``None``, then this
- function determines the best algorithm to use.
+ - ``algorithm`` - string (default: ``None``) an algorithm identifier
+ indicating using the ``pari``, ``fast`` or ``quadratic``
+ algorithm. If the algorithm is ``None``, then this
+ function determines the best algorithm to use. |
Reviewer: Sébastien Labbé |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:7
Thanks! Updated documentation. |
comment:8
I checked the changes. Looks good. Only one thing. I don't agree with the following change: - - ``algorithm`` - string (default:``None``) an algorithm identifier
- indicating using the ``pari``, ``fast`` or ``quadratic``
- algorithm. If the algorithm is ``None``, then this
- function determines the best algorithm to use.
+ - ``algorithm`` -- an algorithm name or (default) ``None``:
+ See :func:`sage.schemes.elliptic_curves.ell_wp.weierstrass_p`
+ for a list of possible values. Because for any user that get there, it is force one more step to get the possible values which is very often a question that comes to mind. Also, for normal user, they might just not be able to get to this other method. In summary, I think it is better to leave it with an explicit list even if the information is doubled. |
comment:9
I agree with slabbe's comment. (I hate it when a function has a *kwds argument and the docstring does not explain them but sends you some where else, which is similar.) |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:11
Alright, makes sense. I changed it back (and added a comment to ell_wp.py to remind people of the duplication). |
comment:12
Thanks for the changes. I still have some comments with respect to coding conventions in sage with respect to documentation. Sorry if it is troublesome: it is just some details. The following change - - ``algorithm`` - string (default:``None``) an algorithm identifier
+ - ``algorithm`` -- string or (default) ``None``: an algorithm does not respect the coding convention for the documentation. See https://doc.sagemath.org/html/en/developer/coding_basics.html To be more precise, please keep Also, it would more exact to write |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:14
The reason I'd changed it was precisely that |
comment:15
How about:
|
comment:17
Done, and squashed all the documentation edits to untangle the commit history a bit. |
Changed reviewer from Sébastien Labbé to Sébastien Labbé, John Cremona, Samuel Lelièvre |
comment:18
Looks good to me if other reviewers agree. |
comment:19
Fine by me. The moral of this story is never to label an algorithm as 'fast'. |
comment:20
Replying to @JohnCremona:
Indeed! |
comment:21
I confirm that
and |
comment:22
Thanks everyone! |
Changed branch from public/use_pari_ellwp_by_default to |
On 9.5.rc3:
PARI is significantly faster in all examples I've tried. We should use it by default instead of Sage's own implementation.
Depends on #33224
CC: @JohnCremona @defeo @videlec
Component: elliptic curves
Author: Lorenz Panny
Branch/Commit:
fbffbf3
Reviewer: Sébastien Labbé, John Cremona, Samuel Lelièvre
Issue created by migration from https://trac.sagemath.org/ticket/33223
The text was updated successfully, but these errors were encountered: