Skip to content

Commit ebf9bf6

Browse files
author
Matthias Koeppe
committed
sage.{crypto.lattice,modules,quadratic_forms,groups}: Update # needs
1 parent fd6921a commit ebf9bf6

File tree

5 files changed

+20
-20
lines changed

5 files changed

+20
-20
lines changed

src/sage/crypto/lattice.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def gen_lattice(type='modular', n=4, m=8, q=11, seed=None,
211211
[-4 -3 2 -5 0 0 0 0 0 1]
212212
]
213213
214-
sage: sage.crypto.gen_lattice(m=10, q=11, seed=42, lattice=True)
214+
sage: sage.crypto.gen_lattice(m=10, q=11, seed=42, lattice=True) # needs fpylll
215215
Free module of degree 10 and rank 10 over Integer Ring
216216
User basis matrix:
217217
[ 0 0 1 1 0 -1 -1 -1 1 0]

src/sage/groups/abelian_gps/dual_abelian_group_element.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def word_problem(self, words):
156156
sage: w = a^7*b^3*c^5*d^4*e^4
157157
sage: x = a^3*b^2*c^2*d^3*e^5
158158
sage: y = a^2*b^4*c^2*d^4*e^5
159-
sage: e.word_problem([u,v,w,x,y])
159+
sage: e.word_problem([u,v,w,x,y]) # needs sage.libs.gap
160160
[[b^2*c^2*d^3*e^5, 245]]
161161
"""
162162
from sage.libs.gap.libgap import libgap

src/sage/groups/group.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ cdef class Group(Parent):
140140
141141
EXAMPLES::
142142
143-
sage: SL(2, 7).is_commutative() # needs sage.modules sage.rings.finite_rings
143+
sage: SL(2, 7).is_commutative() # needs sage.libs.gap sage.modules sage.rings.finite_rings
144144
False
145145
"""
146146
return self.is_abelian()

src/sage/groups/matrix_gps/coxeter_group.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class CoxeterMatrixGroup(UniqueRepresentation, FinitelyGeneratedMatrixGroup_gene
7979
8080
We can create Coxeter groups from Coxeter matrices::
8181
82-
sage: # needs sage.rings.number_field
82+
sage: # needs sage.libs.gap
8383
sage: W = CoxeterGroup([[1, 6, 3], [6, 1, 10], [3, 10, 1]]); W
8484
Coxeter group over Universal Cyclotomic Field with Coxeter matrix:
8585
[ 1 6 3]
@@ -150,7 +150,7 @@ class CoxeterMatrixGroup(UniqueRepresentation, FinitelyGeneratedMatrixGroup_gene
150150
graphs, we can input a Coxeter graph. Following the standard convention,
151151
edges with no label (i.e. labelled by ``None``) are treated as 3::
152152
153-
sage: # needs sage.rings.number_field
153+
sage: # needs sage.libs.gap
154154
sage: G = Graph([(0,3,None), (1,3,15), (2,3,7), (0,1,3)])
155155
sage: W = CoxeterGroup(G); W
156156
Coxeter group over Universal Cyclotomic Field with Coxeter matrix:
@@ -165,7 +165,7 @@ class CoxeterMatrixGroup(UniqueRepresentation, FinitelyGeneratedMatrixGroup_gene
165165
Because there currently is no class for `\ZZ \cup \{ \infty \}`, labels
166166
of `\infty` are given by `-1` in the Coxeter matrix::
167167
168-
sage: # needs sage.rings.number_field
168+
sage: # needs sage.libs.gap
169169
sage: G = Graph([(0,1,None), (1,2,4), (0,2,oo)])
170170
sage: W = CoxeterGroup(G)
171171
sage: W.coxeter_matrix()
@@ -240,15 +240,15 @@ def __init__(self, coxeter_matrix, base_ring, index_set):
240240
EXAMPLES::
241241
242242
sage: W = CoxeterGroup([[1,3,2],[3,1,3],[2,3,1]])
243-
sage: TestSuite(W).run() # long time
243+
sage: TestSuite(W).run() # long time
244244
245-
sage: # needs sage.rings.number_field
245+
sage: # long time, needs sage.rings.number_field sage.symbolic
246246
sage: W = CoxeterGroup([[1,3,2],[3,1,4],[2,4,1]], base_ring=QQbar)
247-
sage: TestSuite(W).run() # long time
247+
sage: TestSuite(W).run()
248248
sage: W = CoxeterGroup([[1,3,2],[3,1,6],[2,6,1]])
249-
sage: TestSuite(W).run(max_runs=30) # long time
249+
sage: TestSuite(W).run(max_runs=30)
250250
sage: W = CoxeterGroup([[1,3,2],[3,1,-1],[2,-1,1]])
251-
sage: TestSuite(W).run(max_runs=30) # long time
251+
sage: TestSuite(W).run(max_runs=30)
252252
253253
We check that :trac:`16630` is fixed::
254254
@@ -340,7 +340,7 @@ def _repr_(self):
340340
341341
EXAMPLES::
342342
343-
sage: CoxeterGroup([[1,3,2],[3,1,4],[2,4,1]]) # needs sage.rings.number_field
343+
sage: CoxeterGroup([[1,3,2],[3,1,4],[2,4,1]]) # needs sage.libs.gap sage.rings.number_field
344344
Finite Coxeter group over Number Field in a with defining polynomial x^2 - 2 with a = 1.414213562373095? with Coxeter matrix:
345345
[1 3 2]
346346
[3 1 4]
@@ -383,8 +383,8 @@ def coxeter_matrix(self):
383383
sage: W.coxeter_matrix()
384384
[1 3]
385385
[3 1]
386-
sage: W = CoxeterGroup(['H',3]) # needs sage.rings.number_field
387-
sage: W.coxeter_matrix()
386+
sage: W = CoxeterGroup(['H',3]) # needs sage.libs.gap sage.rings.number_field
387+
sage: W.coxeter_matrix() # needs sage.libs.gap sage.rings.number_field
388388
[1 3 2]
389389
[3 1 5]
390390
[2 5 1]
@@ -423,7 +423,7 @@ def is_finite(self):
423423
424424
EXAMPLES::
425425
426-
sage: # needs sage.rings.number_field
426+
sage: # needs sage.libs.gap sage.rings.number_field
427427
sage: [l for l in range(2, 9) if
428428
....: CoxeterGroup([[1,3,2],[3,1,l],[2,l,1]]).is_finite()]
429429
[2, 3, 4, 5]

src/sage/quadratic_forms/quadratic_form__automorphisms.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -349,22 +349,22 @@ def automorphisms(self):
349349
48
350350
sage: 2^3 * factorial(3)
351351
48
352-
sage: len(Q.automorphisms())
352+
sage: len(Q.automorphisms()) # needs sage.libs.gap
353353
48
354354
355355
::
356356
357357
sage: Q = DiagonalQuadraticForm(ZZ, [1,3,5,7])
358358
sage: Q.number_of_automorphisms()
359359
16
360-
sage: aut = Q.automorphisms()
361-
sage: len(aut)
360+
sage: aut = Q.automorphisms() # needs sage.libs.gap
361+
sage: len(aut) # needs sage.libs.gap
362362
16
363-
sage: all(Q(M) == Q for M in aut)
363+
sage: all(Q(M) == Q for M in aut) # needs sage.libs.gap
364364
True
365365
366366
sage: Q = QuadraticForm(ZZ, 3, [2, 1, 2, 2, 1, 3])
367-
sage: sorted(Q.automorphisms())
367+
sage: sorted(Q.automorphisms()) # needs sage.libs.gap
368368
[
369369
[-1 0 0] [1 0 0]
370370
[ 0 -1 0] [0 1 0]

0 commit comments

Comments
 (0)