Skip to content

Commit

Permalink
Fixed _positive_roots_reflections for index_set different from {1, 2,…
Browse files Browse the repository at this point in the history
… ..., n}
  • Loading branch information
ventu06 authored Mar 1, 2025
1 parent 7ef5433 commit 19d5525
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sage/groups/matrix_gps/coxeter_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -557,13 +557,14 @@ def _positive_roots_reflections(self):
simple_roots = FreeModule(self.base_ring(), self.ngens()).gens()

refls = self.simple_reflections()
refls_index = dict((refl_i[1], refl_i[0]) for refl_i in enumerate(refls.keys()))
resu = []
d = {}
for i in range(1, N + 1):
segment = word[:i]
last = segment.pop()
ref = refls[last]
rt = simple_roots[last - 1]
rt = simple_roots[refls_index[last]]
while segment:
last = segment.pop()
cr = refls[last]
Expand Down

0 comments on commit 19d5525

Please sign in to comment.