Skip to content

Commit daeae86

Browse files
author
Matthias Koeppe
committed
sage.{coding,combinat}: Update # needs
1 parent b002b63 commit daeae86

File tree

9 files changed

+20
-9
lines changed

9 files changed

+20
-9
lines changed

src/sage/coding/binary_code.pyx

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3204,6 +3204,8 @@ cdef class BinaryCodeClassifier:
32043204
....: [0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1]])
32053205
sage: B = BinaryCode(M)
32063206
sage: gens, labeling, size, base = BC._aut_gp_and_can_label(B)
3207+
3208+
sage: # needs sage.groups
32073209
sage: S = SymmetricGroup(M.ncols())
32083210
sage: L = [S([x+1 for x in g]) for g in gens]
32093211
sage: PermutationGroup(L).order()
@@ -3218,14 +3220,16 @@ cdef class BinaryCodeClassifier:
32183220
....: [0,0,0,1,1,0,0,0,0,1,1,0,1,1,0,1,1]])
32193221
sage: B = BinaryCode(M)
32203222
sage: gens, labeling, size, base = BC._aut_gp_and_can_label(B)
3223+
3224+
sage: # needs sage.groups
32213225
sage: S = SymmetricGroup(M.ncols())
32223226
sage: L = [S([x+1 for x in g]) for g in gens]
32233227
sage: PermutationGroup(L).order()
32243228
2304
32253229
sage: size
32263230
2304
32273231
3228-
sage: M=Matrix(GF(2),[
3232+
sage: M = Matrix(GF(2),[
32293233
....: [1,0,0,1,1,1,1,0,0,1,0,0,0,0,0,0,0],
32303234
....: [0,1,0,0,1,1,1,1,0,0,1,0,0,0,0,0,0],
32313235
....: [0,0,1,0,0,1,1,1,1,0,0,1,0,0,0,0,0],
@@ -3236,14 +3240,16 @@ cdef class BinaryCodeClassifier:
32363240
....: [0,0,0,0,0,0,0,1,0,0,1,1,1,1,0,0,1]])
32373241
sage: B = BinaryCode(M)
32383242
sage: gens, labeling, size, base = BC._aut_gp_and_can_label(B)
3243+
3244+
sage: # needs sage.groups
32393245
sage: S = SymmetricGroup(M.ncols())
32403246
sage: L = [S([x+1 for x in g]) for g in gens]
32413247
sage: PermutationGroup(L).order()
32423248
136
32433249
sage: size
32443250
136
32453251
3246-
sage: M=Matrix(GF(2),[
3252+
sage: M = Matrix(GF(2),[
32473253
....: [0,1,0,1,1,1,0,0,0,1,0,0,0,1,0,0,0,1,1,1,0,1],
32483254
....: [1,0,1,1,1,0,0,0,1,0,0,0,1,0,0,0,1,1,1,0,1,0],
32493255
....: [0,1,1,1,0,0,0,1,0,0,1,1,0,0,0,1,1,1,0,1,0,0],
@@ -3257,6 +3263,8 @@ cdef class BinaryCodeClassifier:
32573263
....: [0,0,1,0,1,1,1,0,0,0,1,1,0,0,1,0,0,0,1,1,1,0]])
32583264
sage: B = BinaryCode(M)
32593265
sage: gens, labeling, size, base = BC._aut_gp_and_can_label(B)
3266+
3267+
sage: # needs sage.groups
32603268
sage: S = SymmetricGroup(M.ncols())
32613269
sage: L = [S([x+1 for x in g]) for g in gens]
32623270
sage: PermutationGroup(L).order()
@@ -3956,7 +3964,7 @@ cdef class BinaryCodeClassifier:
39563964
sage: from sage.coding.binary_code import *
39573965
sage: BC = BinaryCodeClassifier()
39583966
sage: B = BinaryCode(Matrix(GF(2), [[1,1,1,1]]))
3959-
sage: BC.generate_children(B, 6, 4)
3967+
sage: BC.generate_children(B, 6, 4) # needs sage.groups
39603968
[
39613969
[1 1 1 1 0 0]
39623970
[0 1 0 1 1 1]

src/sage/coding/codecan/autgroup_can_label.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# sage.doctest: needs sage.libs.pari
12
r"""
23
Canonical forms and automorphisms for linear codes over finite fields
34

src/sage/coding/goppa_code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ def distance_bound(self):
308308
[8, 2] Goppa code over GF(2)
309309
sage: C.distance_bound()
310310
3
311-
sage: C.minimum_distance()
311+
sage: C.minimum_distance() # needs sage.libs.gap
312312
5
313313
"""
314314
return 1 + (self._generating_pol).degree()

src/sage/combinat/root_system/cartan_type.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1438,7 +1438,7 @@ def is_implemented(self):
14381438
14391439
EXAMPLES::
14401440
1441-
sage: CartanType(["A",4,1]).is_implemented()
1441+
sage: CartanType(["A",4,1]).is_implemented() # needs sage.graphs
14421442
True
14431443
sage: CartanType(['H',3]).is_implemented()
14441444
True

src/sage/combinat/root_system/reflection_group_c.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# cython: wraparound=False, boundscheck=False
2+
# sage.doctest: needs sage.graphs
23
r"""
34
This contains a few time-critical auxiliary cython functions for
45
finite complex or real reflection groups.

src/sage/combinat/root_system/reflection_group_element.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -835,6 +835,7 @@ cdef class RealReflectionGroupElement(ComplexReflectionGroupElement):
835835
836836
EXAMPLES::
837837
838+
sage: # needs sage.graphs
838839
sage: W = CoxeterGroup(['A',4], implementation="permutation")
839840
sage: s = W.simple_reflections()
840841
sage: w = s[2] * s[1] * s[3]

src/sage/combinat/root_system/root_system.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ class RootSystem(UniqueRepresentation, SageObject):
158158
In finite type `A`, we recover the natural representation of the
159159
symmetric group as group of permutation matrices::
160160
161-
sage: RootSystem(["A",2]).ambient_space().weyl_group().simple_reflections() # needs sage.libs.pari
161+
sage: RootSystem(["A",2]).ambient_space().weyl_group().simple_reflections() # needs sage.libs.gap sage.libs.pari
162162
Finite family {1: [0 1 0]
163163
[1 0 0]
164164
[0 0 1],
@@ -169,7 +169,7 @@ class RootSystem(UniqueRepresentation, SageObject):
169169
In type `B`, `C`, and `D`, we recover the natural representation
170170
of the Weyl group as groups of signed permutation matrices::
171171
172-
sage: RootSystem(["B",3]).ambient_space().weyl_group().simple_reflections() # needs sage.libs.pari
172+
sage: RootSystem(["B",3]).ambient_space().weyl_group().simple_reflections() # needs sage.libs.gap sage.libs.pari
173173
Finite family {1: [0 1 0]
174174
[1 0 0]
175175
[0 0 1],

src/sage/combinat/root_system/weyl_characters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# sage.doctest: needs sage.groups sage.modules
1+
# sage.doctest: needs sage.graphs sage.groups sage.modules
22
"""
33
Weyl Character Rings
44
"""

src/sage/combinat/root_system/weyl_group.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# sage.doctest: needs sage.groups sage.modules
1+
# sage.doctest: needs sage.graphs sage.groups sage.modules
22
"""
33
Weyl Groups
44

0 commit comments

Comments
 (0)