Skip to content

improve polynomial_modn_dense_ntl.Polynomial_dense_mod_p #4636

@ncalexan

Description

@ncalexan
mannequin

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions