Re: [sage-combinat-devel] coxeter groups in python

2012-02-14 Thread Nicolas M. Thiery
On Mon, Feb 13, 2012 at 07:46:31PM +0100, Jean MICHEL wrote: > -A naive (in the sense of straightforward) port of the needed parts of (a > rather old version of) Chevie to plain Python. I do not know if much of it > is easily usable for a Sage port. It should be trivial to import. It might need

Re: [sage-combinat-devel] Re: coxeter groups in python

2012-02-14 Thread Nicolas M. Thiery
> I tried to do some computations with the existing Iwahori-Hecke > algebra module inside sage earlier this year. I needed to work over > the rational function field C(x), for an indeterminate x. In the end I > gave up and went back to using some gap3 code that I have, which > builds on chevie, bec

[sage-combinat-devel] Re: coxeter groups in python

2012-02-14 Thread Andrew Mathas
I tried to do some computations with the existing Iwahori-Hecke algebra module inside sage earlier this year. I needed to work over the rational function field C(x), for an indeterminate x. In the end I gave up and went back to using some gap3 code that I have, which builds on chevie, because it wa

Re: [sage-combinat-devel] comments/questions on poset code

2012-02-14 Thread Nicolas M. Thiery
On Tue, Feb 14, 2012 at 02:05:21PM -0800, Anne Schilling wrote: > No. It is really a different poset, see: > ... > which returns the original poset. But to_poset gives Q from the above > computation. Ok; out of curiosity, why do you need the relabelled poset for? > > The elements of L would simp

Re: [sage-combinat-devel] comments/questions on poset code

2012-02-14 Thread Anne Schilling
Hi! >> class LinearExtensionOfPoset(CombinatorialObject, Element): >> ... > > We want to deprecate CombinatorialObject as soon as possible. If at > all possible, please use ClonableArray (if not ClonableIntArray). See: > > sage: sage.structure.list_clone? > > Here, the ``def check(sel

Re: [sage-combinat-devel] comments/questions on poset code

2012-02-14 Thread Nicolas M. Thiery
Hi! > Yes, this option seems the most natural to me and I have implemented this now! Cool! > As element class, I implemented > > class LinearExtensionOfPoset(CombinatorialObject, Element): > ... We want to deprecate CombinatorialObject as soon as possible. If at all possible, pleas

Re: [sage-combinat-devel] comments/questions on poset code

2012-02-14 Thread Anne Schilling
> Thanks for the clarification. Let me restate it to check I am having > it right. You have a poset, say: > > sage: P = Poset((divisors(30), attrcall("divides"))) > > and then you want to manipulate a bunch of linear extensions of that > poset like:: > > sage: l1 = [1, 5, 3, 2, 10, 6, 15