Frederic,

I pushed a patch (coxeter_ms.patch) to the sage-combinat server.

Now you should get

sage: W=WeylGroup(['A',2])
sage: w=W.from_reduced_word([1,2,1])
sage: w.inversions()
[alpha[1], alpha[1] + alpha[2], alpha[2]]

which is much nicer.

--Mark

> Trying to use inversions for elements of Weyl groups, I found that it
> exists, but does not work, and is badly documented and tested. In which
> patch is this located ?
>
> Frederic
>
> sage: W=WeylGroup(['A',3])
> sage: w=W.from_reduced_word([1,2,1])
> sage: w.inversions()
>
> AttributeError: 'WeylGroup_gens_with_category.element_class' object has no
> attribute 'lattice'
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-combinat-devel" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/sage-combinat-devel/-/ue0VDTeNyz4J.
> To post to this group, send email to sage-combinat-devel@googlegroups.com.
> To unsubscribe from this group, send email to
> sage-combinat-devel+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/sage-combinat-devel?hl=en.
>
>


-- 
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To post to this group, send email to sage-combinat-devel@googlegroups.com.
To unsubscribe from this group, send email to 
sage-combinat-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sage-combinat-devel?hl=en.

Reply via email to