Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #30237: Make .coxeter_matrix() return a CoxeterMatrix for coxete…
…r3-implemented groups This patch fixes all of the following, which currently throw errors: {{{#!python W = CoxeterGroup(['B', 3], implementation='coxeter3') W.coxeter_type() # AttributeError: 'sage.matrix.matrix_integer_dense.Matrix_integer_dense' object has no attribute 'coxeter_type' W([1,2,1]).reduced_words() # IndexError: matrix index out of range R.<v> = LaurentPolynomialRing(ZZ) IwahoriHeckeAlgebra(W, v, -1/v) # AttributeError: 'sage.matrix.matrix_integer_dense.Matrix_integer_dense' object has no attribute 'coxeter_type' }}} The underlying problem in all cases is that `W.coxeter_matrix()` does not return a `CoxeterMatrix`; I've altered this to return the (correctly indexed) coxeter matrix and added a test. This also removes a completely unused function `CoxeterGroup.m(i, j)` which seemingly existed only to workaround the fact that `.coxeter_matrix()` was incorrectly indexed (and in fact is ill-founded, it would cause an error on a group with affine Cartan type). This removal breaks no tests in `libs/coxeter3`. URL: https://trac.sagemath.org/30237 Reported by: gh-cemulate Ticket author(s): Chase Meadors Reviewer(s): Travis Scrimshaw
- Loading branch information