Skip to content

Commit c0118ba

Browse files
author
Matthias Koeppe
committed
src/sage/rings/polynomial/polynomial_ring.py: Use '# needs sage.libs.ntl' when GF2X is used
1 parent 173d3c3 commit c0118ba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/sage/rings/finite_rings/residue_field.pyx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,7 @@ cdef class ReductionMap(Map):
906906
907907
sage: R.<t> = GF(2)[]; P = R.ideal(t^7 + t^6 + t^5 + t^4 + 1)
908908
sage: k = P.residue_field()
909-
sage: k.reduction_map()
909+
sage: k.reduction_map() # optional - sage.libs.ntl
910910
Partially defined reduction map:
911911
From: Fraction Field of
912912
Univariate Polynomial Ring in t over Finite Field of size 2 (using GF2X)
@@ -1133,7 +1133,7 @@ cdef class ReductionMap(Map):
11331133
sage: k.<a> = R.residue_field(h)
11341134
sage: K = R.fraction_field()
11351135
sage: f = k.convert_map_from(K)
1136-
sage: f.section()
1136+
sage: f.section() # needs sage.libs.ntl
11371137
Lifting map:
11381138
From: Residue field in a of Principal ideal (t^5 + t^2 + 1) of
11391139
Univariate Polynomial Ring in t over Finite Field of size 2 (using GF2X)
@@ -1466,7 +1466,7 @@ cdef class LiftingMap(Section):
14661466
sage: R.<t> = GF(2)[]; h = t^5 + t^2 + 1
14671467
sage: k.<a> = R.residue_field(h)
14681468
sage: K = R.fraction_field()
1469-
sage: L = k.lift_map(); L.codomain()
1469+
sage: L = k.lift_map(); L.codomain() # needs sage.libs.ntl
14701470
Univariate Polynomial Ring in t over Finite Field of size 2 (using GF2X)
14711471
"""
14721472
self._K = reduction._K

0 commit comments

Comments
 (0)