-
-
Notifications
You must be signed in to change notification settings - Fork 703
Closed
Description
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 in Zmod(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