Skip to content

sage.rings.integer, integer_ring: Remove dependencies on sage.libs.ntl #29911

@mkoeppe

Description

@mkoeppe

The two Cython modules depend on NTL in a very minor way that could be eliminated:

  • sage.rings.integer.Integer depends on sage.libs.ntl to provide method _to_ZZ.

  • sage.rings.integer_ring._coerce_ZZ depends on sage.libs.ntl to provide the method _coerce_ZZ.

These methods are only used in sage.libs.ntl and in sage.rings.number_field.number_field_element and rings.polynomial.polynomial_zz_pex.

In this ticket, we remove these two methods and replace all uses by their definition (= 1 or 2 lines).

CC: @videlec @fchapoton @alexjbest @mezzarobba @kliem @mwageringel @tscrim

Component: refactoring

Author: Matthias Koeppe

Branch/Commit: 62e2aa9

Reviewer: Travis Scrimshaw

Issue created by migration from https://trac.sagemath.org/ticket/29911

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions