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 polynomial_modn_dense_ntl.Polynomial_dense_mod_p #4636
Comments
This comment has been minimized.
This comment has been minimized.
comment:1
Attachment: 4636-ncalexan-Polynomial_dense_modp_ntl_zz.patch.gz |
comment:2
Hi Nick, did you see the 'newest' technique to implement these things? It is not 100% polished yet (e.g. I suppose context handling should be improved) but it should be the most straight forward in terms of avoiding code duplication. See |
comment:3
Nick, Is this supposed be "with patch; needs review"? |
comment:5
REFEREE REPORT: I applied this patch and doctested the rings directory. I get a couple of doctest failures:
|
comment:6
I should reimplement this using |
comment:9
What is the status of this? If no one is going to do the templated version, then we should probably include this code. |
comment:10
I vote for closing this ticket
|
comment:11
I agree with malb. |
Changed keywords from polynomial modn finite field gf to polynomial modn finite field gf sd40.5 |
Reviewer: Mike Hansen |
sage.rings.polynomial.polynomial_modn_dense_ntl.Polynomial_dense_mod_p is very old.
The attached patch removes (but doesn't yet delete -- could you verify it can be removed, reviewer?) Polynomial_dense_mod_p and implements polynomial_modn_dense_ntl.Polynomial_dense_modp_ntl_zz/ZZ using the newer techniques.
It makes basic arithmetic faster. I was finding that arithmetic in
GF(next_prime(2^50))['x']
was slower than inZmod(next_prime(2^50)+1)['x']
, but now I cannot find the comparison! In any case, this is much faster for doing gcd/xgcd in GF(p)['x'].CC: @craigcitro
Component: number theory
Keywords: polynomial modn finite field gf sd40.5
Reviewer: Mike Hansen
Issue created by migration from https://trac.sagemath.org/ticket/4636
The text was updated successfully, but these errors were encountered: