Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
added fundamental_weight to coxetergroup implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
stumpc5 committed Apr 13, 2016
1 parent b5a2c8d commit e36ddad
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/sage/groups/matrix_gps/coxeter_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,18 @@ def fundamental_weights(self):
return {i: simple_weights[k]
for k, i in enumerate(self.index_set())}

def fundamental_weight(self, i):
r"""
Return the fundamental weight with index ``i``.
EXAMPLES::
sage: W = CoxeterGroup(['A',3], implementation='reflection')
sage: W.fundamental_weight(1)
(3/2, 1, 1/2)
"""
return self.fundamental_weights()[i]

class Element(MatrixGroupElement_generic):
"""
A Coxeter group element.
Expand Down

0 comments on commit e36ddad

Please sign in to comment.