Skip to content

Commit cf0357d

Browse files
author
Matthias Koeppe
committed
sage.combinat.root_system: Update # needs
1 parent daeae86 commit cf0357d

11 files changed

+38
-27
lines changed

src/sage/combinat/root_system/ambient_space.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,10 @@ class AmbientSpace(CombinatorialFreeModule):
5555
5656
TESTS::
5757
58-
sage: types = CartanType.samples(crystallographic = True)+[CartanType(["A",2],["C",5])]
58+
sage: # needs sage.libs.gap
59+
sage: types = CartanType.samples(crystallographic=True) + [CartanType(["A",2],["C",5])]
5960
sage: for e in [ct.root_system().ambient_space() for ct in types]:
60-
....: TestSuite(e).run()
61+
....: TestSuite(e).run()
6162
6263
sage: e1 = RootSystem(['A',3]).ambient_lattice()
6364
sage: e2 = RootSystem(['B',3]).ambient_lattice()

src/sage/combinat/root_system/cartan_matrix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ def reflection_group(self, type="matrix"):
452452
EXAMPLES::
453453
454454
sage: C = CartanMatrix(['A',3]) # needs sage.graphs
455-
sage: C.reflection_group() # needs sage.graphs
455+
sage: C.reflection_group() # needs sage.libs.gap sage.graphs
456456
Weyl Group of type ['A', 3] (as a matrix group acting on the root space)
457457
"""
458458
RS = self.root_space()

src/sage/combinat/root_system/coxeter_group.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def CoxeterGroup(data, implementation="reflection", base_ring=None, index_set=No
8686
[3 1 5]
8787
[2 5 1]
8888
89-
sage: W = CoxeterGroup(["H",3], implementation="reflection"); W # needs sage.rings.number_field
89+
sage: W = CoxeterGroup(["H",3], implementation="reflection"); W # needs sage.libs.gap sage.rings.number_field
9090
Finite Coxeter group over Number Field in a with defining polynomial x^2 - 5
9191
with a = 2.236067977499790? with Coxeter matrix:
9292
[1 3 2]

src/sage/combinat/root_system/coxeter_matrix.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -850,6 +850,7 @@ def bilinear_form(self, R=None):
850850
851851
EXAMPLES::
852852
853+
sage: # needs sage.libs.gap
853854
sage: CoxeterType(['A', 2, 1]).bilinear_form()
854855
[ 1 -1/2 -1/2]
855856
[-1/2 1 -1/2]

src/sage/combinat/root_system/coxeter_type.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ def bilinear_form(self, R=None):
357357
358358
EXAMPLES::
359359
360-
sage: # needs sage.graphs sage.rings.number_field
360+
sage: # needs sage.graphs sage.libs.gap
361361
sage: CoxeterType(['A', 2, 1]).bilinear_form()
362362
[ 1 -1/2 -1/2]
363363
[-1/2 1 -1/2]

src/sage/combinat/root_system/fundamental_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.graphs
1+
# sage.doctest: needs sage.graphs sage.groups
22
r"""
33
Fundamental Group of an Extended Affine Weyl Group
44

src/sage/combinat/root_system/integrable_representations.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -860,21 +860,22 @@ def mult(self, mu):
860860
861861
EXAMPLES::
862862
863+
sage: # needs sage.libs.gap
863864
sage: L = RootSystem("B3~").weight_lattice(extended=True)
864865
sage: Lambda = L.fundamental_weights()
865866
sage: delta = L.null_root()
866867
sage: W = L.weyl_group(prefix="s")
867868
sage: [s0,s1,s2,s3] = W.simple_reflections()
868869
sage: V = IntegrableRepresentation(Lambda[0])
869-
sage: V.mult(Lambda[2]-2*delta)
870+
sage: V.mult(Lambda[2] - 2*delta)
870871
3
871-
sage: V.mult(Lambda[2]-Lambda[1])
872+
sage: V.mult(Lambda[2] - Lambda[1])
872873
0
873-
sage: weights = [w.action(Lambda[1]-4*delta) for w in [s1,s2,s0*s1*s2*s3]]
874+
sage: weights = [w.action(Lambda[1] - 4*delta) for w in [s1,s2,s0*s1*s2*s3]]
874875
sage: weights
875876
[-Lambda[1] + Lambda[2] - 4*delta,
876-
Lambda[1] - 4*delta,
877-
-Lambda[1] + Lambda[2] - 4*delta]
877+
Lambda[1] - 4*delta,
878+
-Lambda[1] + Lambda[2] - 4*delta]
878879
sage: [V.mult(mu) for mu in weights]
879880
[35, 35, 35]
880881
@@ -1093,7 +1094,7 @@ def branch(self, i=None, weyl_character_ring=None, sequence=None, depth=5):
10931094
10941095
sage: Lambda = RootSystem(['A',2,1]).weight_lattice(extended=true).fundamental_weights()
10951096
sage: V = IntegrableRepresentation(2*Lambda[0])
1096-
sage: b = V.branch(); b
1097+
sage: b = V.branch(); b # needs sage.libs.gap
10971098
[A2(0,0),
10981099
A2(1,1),
10991100
A2(0,0) + 2*A2(1,1) + A2(2,2),
@@ -1104,7 +1105,7 @@ def branch(self, i=None, weyl_character_ring=None, sequence=None, depth=5):
11041105
If the parameter ``weyl_character_ring`` is omitted, the ring may be recovered
11051106
as the parent of one of the branched coefficients::
11061107
1107-
sage: A2 = b[0].parent(); A2
1108+
sage: A2 = b[0].parent(); A2 # needs sage.libs.gap
11081109
The Weyl Character Ring of Type A2 with Integer Ring coefficients
11091110
11101111
If `i` is not zero then you should specify the :class:`WeylCharacterRing` that you

src/sage/combinat/root_system/non_symmetric_macdonald_polynomials.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class NonSymmetricMacdonaldPolynomials(CherednikOperatorsEigenvectors):
7272
Here is the nonsymmetric Macdonald polynomial with leading term
7373
`[2,0,1]`::
7474
75-
sage: E[L0([2,0,1])]
75+
sage: E[L0([2,0,1])] # needs sage.libs.gap
7676
((-q*q1-q*q2)/(-q*q1-q2))*B[(1, 1, 1)]
7777
+ ((-q1-q2)/(-q*q1-q2))*B[(2, 1, 0)] + B[(2, 0, 1)]
7878

src/sage/combinat/root_system/root_space.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -429,12 +429,13 @@ def max_quantum_element(self):
429429
430430
EXAMPLES::
431431
432+
sage: # needs sage.libs.gap sage.graphs
432433
sage: Qvee = RootSystem(['C',2]).coroot_lattice()
433-
sage: Qvee.from_vector(vector([1,2])).max_quantum_element() # needs sage.graphs
434+
sage: Qvee.from_vector(vector([1,2])).max_quantum_element()
434435
[2, 1, 2, 1]
435-
sage: Qvee.from_vector(vector([1,1])).max_quantum_element() # needs sage.graphs
436+
sage: Qvee.from_vector(vector([1,1])).max_quantum_element()
436437
[1, 2, 1]
437-
sage: Qvee.from_vector(vector([0,2])).max_quantum_element() # needs sage.graphs
438+
sage: Qvee.from_vector(vector([0,2])).max_quantum_element()
438439
[2]
439440
440441
"""

src/sage/combinat/root_system/root_system.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -203,15 +203,17 @@ class RootSystem(UniqueRepresentation, SageObject):
203203
Here is the orbit of the identity under the action of the finite
204204
group::
205205
206-
sage: W = L.weyl_group() # needs sage.libs.pari
207-
sage: S3 = [ w.action(id) for w in W.classical() ] # needs sage.graphs sage.libs.pari
208-
sage: [L.classical()(x) for x in S3] # needs sage.graphs sage.libs.pari
206+
sage: # needs sage.libs.gap sage.libs.pari sage.graphs
207+
sage: W = L.weyl_group()
208+
sage: S3 = [ w.action(id) for w in W.classical() ]
209+
sage: [L.classical()(x) for x in S3]
209210
[(1, 2, 3), (3, 1, 2), (2, 3, 1), (2, 1, 3), (1, 3, 2), (3, 2, 1)]
210211
211212
And the action of `s_0` on these yields::
212213
213-
sage: s = W.simple_reflections() # needs sage.libs.pari
214-
sage: [L.classical()(s[0].action(x)) for x in S3] # needs sage.graphs sage.libs.pari
214+
sage: # needs sage.libs.gap sage.libs.pari sage.graphs
215+
sage: s = W.simple_reflections()
216+
sage: [L.classical()(s[0].action(x)) for x in S3]
215217
[(0, 2, 4), (-1, 1, 6), (-2, 3, 5), (0, 1, 5), (-1, 3, 4), (-2, 2, 6)]
216218
217219
We can also plot various components of the ambient spaces::

0 commit comments

Comments
 (0)