Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sagemathgh-39617: Fixed _positive_roots_reflections for index_set different from {1, 2, …, n} The method _positive_roots_reflections() of CoxeterMatrixGroup, required by the method positive_roots(), assumes that the index_set of the group, represented by the keys of self.simple_reflections(), is of the type {1, 2, ..., n}. This is not always the case, for example the following code fails: `CoxeterGroup(CoxeterType("A3").relabel({1: "r", 2: "s", 3: "t"})).positive_roots()` This PR fixes this issue by allowing other type of keys. URL: sagemath#39617 Reported by: Eduardo Venturini Reviewer(s): Eduardo Venturini, Travis Scrimshaw
- Loading branch information