Skip to content

Commit 9f286eb

Browse files
author
Release Manager
committed
gh-36916: `sage.combinat`: Update `# needs` <!-- ^^^^^ Please provide a concise, informative and self-explanatory title. Don't put issue numbers in there, do this in the PR body below. For example, instead of "Fixes #1234" use "Introduce new method to calculate 1+1" --> <!-- Describe your changes here in detail --> <!-- Why is this change required? What problem does it solve? --> <!-- If this PR resolves an open issue, please link to it here. For example "Fixes #12345". --> - Cherry-picked from #35095 <!-- If your change requires a documentation PR, please link it appropriately. --> ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> <!-- If your change requires a documentation PR, please link it appropriately --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> <!-- Feel free to remove irrelevant items. --> - [x] The title is concise, informative, and self-explanatory. - [ ] The description explains in detail what this PR is about. - [ ] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation accordingly. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on - #12345: short description why this is a dependency - #34567: ... --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> URL: #36916 Reported by: Matthias Köppe Reviewer(s): David Coudert
2 parents d7e271c + 182d81f commit 9f286eb

32 files changed

+476
-454
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/binary_tree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4261,7 +4261,7 @@ def random_element(self):
42614261
42624262
EXAMPLES::
42634263
4264-
sage: BinaryTrees(5).random_element() # random # needs sage.combinat
4264+
sage: BinaryTrees(5).random_element() # random # needs sage.combinat
42654265
[., [., [., [., [., .]]]]]
42664266
sage: BinaryTrees(0).random_element() # needs sage.combinat
42674267
.

src/sage/combinat/designs/difference_family.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1748,7 +1748,7 @@ def supplementary_difference_set_from_rel_diff_set(q, existence=False, check=Tru
17481748
EXAMPLES::
17491749
17501750
sage: from sage.combinat.designs.difference_family import supplementary_difference_set_from_rel_diff_set
1751-
sage: supplementary_difference_set_from_rel_diff_set(17) #random # needs sage.libs.pari
1751+
sage: supplementary_difference_set_from_rel_diff_set(17) #random # needs sage.libs.pari
17521752
(Additive abelian group isomorphic to Z/16,
17531753
[[(1), (5), (6), (7), (9), (13), (14), (15)],
17541754
[(0), (2), (3), (5), (6), (10), (11), (13), (14)],

src/sage/combinat/designs/latin_squares.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,12 +291,12 @@ def mutually_orthogonal_latin_squares(k, n, partitions=False, check=True):
291291
292292
sage: designs.orthogonal_arrays.is_available(5+2, 5) # 5 MOLS of order 5
293293
False
294-
sage: designs.orthogonal_arrays.is_available(4+2,6) # 4 MOLS of order 6 # needs sage.schemes
294+
sage: designs.orthogonal_arrays.is_available(4+2,6) # 4 MOLS of order 6 # needs sage.schemes
295295
False
296296
297297
Sage, however, is not able to prove that the second MOLS do not exist::
298298
299-
sage: designs.orthogonal_arrays.exists(4+2,6) # 4 MOLS of order 6 # needs sage.schemes
299+
sage: designs.orthogonal_arrays.exists(4+2,6) # 4 MOLS of order 6 # needs sage.schemes
300300
Unknown
301301
302302
If you ask for such a MOLS then you will respectively get an informative

src/sage/combinat/free_module.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,7 @@ def get_order(self):
936936
EXAMPLES::
937937
938938
sage: QS2 = SymmetricGroupAlgebra(QQ,2) # needs sage.combinat
939-
sage: QS2.get_order() # note: order changed on 2009-03-13 # needs sage.combinat
939+
sage: QS2.get_order() # note: order changed on 2009-03-13 # needs sage.combinat
940940
[[2, 1], [1, 2]]
941941
"""
942942
if self._order is None:

src/sage/combinat/multiset_partition_into_sets_ordered.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3394,7 +3394,7 @@ def val(self, q='q'):
33943394
33953395
Verifying Example 4.5 from [BCHOPSY2017]_::
33963396
3397-
sage: B = crystals.Minimaj(3, 4, 2) # for `Val_{4,1}^{(3)}` # needs sage.modules
3397+
sage: B = crystals.Minimaj(3, 4, 2) # for `Val_{4,1}^{(3)}` # needs sage.modules
33983398
sage: B.val() # needs sage.modules
33993399
(q^2+q+1)*s[2, 1, 1] + q*s[2, 2]
34003400
"""

src/sage/combinat/partition.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5548,9 +5548,9 @@ def simple_module_dimension(self, base_ring=None):
55485548
55495549
sage: Partition([2,2,1]).simple_module_dimension()
55505550
5
5551-
sage: Partition([2,2,1]).specht_module_dimension(GF(3)) # optional - sage.rings.finite_rings
5551+
sage: Partition([2,2,1]).specht_module_dimension(GF(3)) # needs sage.rings.finite_rings
55525552
5
5553-
sage: Partition([2,2,1]).simple_module_dimension(GF(3)) # optional - sage.rings.finite_rings
5553+
sage: Partition([2,2,1]).simple_module_dimension(GF(3)) # needs sage.rings.finite_rings
55545554
4
55555555
55565556
sage: for la in Partitions(6, regular=3):
@@ -6735,9 +6735,9 @@ def random_element(self, measure='uniform'):
67356735
67366736
EXAMPLES::
67376737
6738-
sage: Partitions(5).random_element() # random # needs sage.libs.flint
6738+
sage: Partitions(5).random_element() # random # needs sage.libs.flint
67396739
[2, 1, 1, 1]
6740-
sage: Partitions(5).random_element(measure='Plancherel') # random # needs sage.libs.flint
6740+
sage: Partitions(5).random_element(measure='Plancherel') # random # needs sage.libs.flint
67416741
[2, 1, 1, 1]
67426742
"""
67436743
if measure == 'uniform':
@@ -6755,7 +6755,7 @@ def random_element_uniform(self):
67556755
67566756
sage: Partitions(5).random_element_uniform() # random # needs sage.libs.flint
67576757
[2, 1, 1, 1]
6758-
sage: Partitions(20).random_element_uniform() # random # needs sage.libs.flint
6758+
sage: Partitions(20).random_element_uniform() # random # needs sage.libs.flint
67596759
[9, 3, 3, 2, 2, 1]
67606760
67616761
TESTS::

src/sage/combinat/plane_partition.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1548,7 +1548,7 @@ def __init__(self, box_size):
15481548
EXAMPLES::
15491549
15501550
sage: PP = PlanePartitions([4,3,2])
1551-
sage: TestSuite(PP).run() # long time, needs sage.modules
1551+
sage: TestSuite(PP).run() # long time # needs sage.modules
15521552
"""
15531553
super().__init__(box_size, category=FiniteEnumeratedSets())
15541554

0 commit comments

Comments
 (0)