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
Improve handling of "algorithm" parameter in EllipticCurve_finite_field.cardinality() #16680
Comments
Commit: |
comment:3
Continuing from #16158, the question is should the fact that the value has been computed (and cached) cause a recomputation? Currently how it is implemented is almost no, but it is always recomputed with I'm somewhat inclined to go with what you say, ignore the However I feel like this could lead to difficult to find bugs, and instead we should recompute everytime a new algorithm is requested. (In this case, we could just convert it to a proper |
comment:4
Replying to @tscrim:
If all the algorithms are correct, then I see no reason why we should ever recompute the order once it has been computed in any way; it is only useful for debugging purposes.
I don't have a strong opinion on this, although using |
Reviewer: Travis Scrimshaw |
comment:5
Well, we can't get rid of the manual cache because of the I've changed it so that New commits:
|
Changed branch from u/pbruin/16680-elliptic_curve_cardinality_doctest to u/tscrim/elliptic_curve_cardinality-16680 |
comment:6
Replying to @tscrim:
I agree; this would be something for another ticket.
Your doctest will probably fail if the elliptic curve is garbage-collected between the two invocations. |
Changed reviewer from Travis Scrimshaw to Travis Scrimshaw, Peter Bruin |
This comment has been minimized.
This comment has been minimized.
Changed author from Peter Bruin to Peter Bruin, Travis Scrimshaw |
Changed branch from u/tscrim/elliptic_curve_cardinality-16680 to u/pbruin/16680-elliptic_curve_cardinality_doctest |
comment:7
Replying to @pjbruin:
Fixed this, also polished the documentation a bit more and made |
Changed keywords from none to elliptic curve cardinality |
comment:8
Replying to @pjbruin:
Good point.
I agree since it always went to |
Changed branch from u/pbruin/16680-elliptic_curve_cardinality_doctest to |
The following doctest in
ell_finite_field.py
can fail (by returning a cached result) because the same curve is used in an earlier doctest and may be cached by theUniqueFactory
from #11474:A trivial solution is to use a different curve for this test.
This ticket also makes the handling of the
algorithm
parameter more consistent and polishes the documentation a bit.Depends on #11474
CC: @vbraun
Component: elliptic curves
Keywords: elliptic curve cardinality
Author: Peter Bruin, Travis Scrimshaw
Branch/Commit:
545410e
Reviewer: Travis Scrimshaw, Peter Bruin
Issue created by migration from https://trac.sagemath.org/ticket/16680
The text was updated successfully, but these errors were encountered: