Hi all,
I would have posted this question on AskSage, but I can't seem to be able to connect through my google account (Authorization Error?). So I put the question here.
I would like to know how to iterate through permutation matrices of a fixed size ($n\times n$) by breadth-first-search (by length in the weak order poset). Somehow, this is pretty simple, but I can't seem to figure this out from the jungle of methods available.
I do know that it is possible to get the elements by lengths in the CoxeterGroup(['A',n-1]) structure, but I want the permutation matrix associate to the element.
Somehow, tons of methods are available but the obvious "permutation_matrix" is not there.
Any hint? I know I missed something somewhere!
J-P