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

2012-02-17 Thread Nicolas M. Thiery
On Thu, Feb 16, 2012 at 11:54:56PM -0800, Anne Schilling wrote: > Thank you so much! So that I understand for the future: __init__ always needs > to take parent as an input for the element class? Indeed. > But it does not need to take all inputs that would be needed for a > class call? More prec

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

2012-02-17 Thread Nicolas M. Thiery
On Fri, Feb 17, 2012 at 12:41:27AM -0800, Anne Schilling wrote: > Do posets have a latex method? Or can they only be viewed using .show()? Apparently not: sage: P = Posets().example() sage: P._latex_ ... AttributeError: 'FiniteSetsOrderedByInclusion_with_category' object has no a

Re: [sage-combinat-devel] Sage-Combinat on Sage 5.0.beta4 and updated sage-combinat script

2012-02-17 Thread Nicolas M. Thiery
On Fri, Feb 17, 2012 at 06:02:54PM +0100, Nicolas M. Thiery wrote: > > By the way: the Sage-Combinat queue should currently apply smoothly on > > 4.8, 5.0.beta2, and 5.0.beta4; maybe on 4.7.2. > > Hmm, there are some glitches, and I need to run to get the girls. > Please wait one hour of so! It s

Re: [sage-combinat-devel] Sage-Combinat on Sage 5.0.beta4 and updated sage-combinat script

2012-02-17 Thread Nicolas M. Thiery
On Fri, Feb 17, 2012 at 05:42:06PM +0100, Nicolas M. Thiery wrote: > Dear Sage-Combinat developers, > > By the way: the Sage-Combinat queue should currently apply smoothly on > 4.8, 5.0.beta2, and 5.0.beta4; maybe on 4.7.2. Hmm, there are some glitches, and I need to run to get the girls. P

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

2012-02-17 Thread Nicolas M. Thiery
On Fri, Feb 17, 2012 at 07:55:42AM -0800, Anne Schilling wrote: > On 2/17/12 12:13 AM, Florent Hivert wrote: > >>> By the way: changing P.linear_extensions() to return an enumerated set > >>> rather than a plain list could make sense, assuming there is no speed > >>> loss. This might require a bit

[sage-combinat-devel] Sage-Combinat on Sage 5.0.beta4 and updated sage-combinat script

2012-02-17 Thread Nicolas M. Thiery
Dear Sage-Combinat developers, By the way: the Sage-Combinat queue should currently apply smoothly on 4.8, 5.0.beta2, and 5.0.beta4; maybe on 4.7.2. To this end, I just worked on the sage-combinat script to let it handle multiple developers version, like 5.0.beta2 and 5.0.beta4: #12530 P

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

2012-02-17 Thread Anne Schilling
On 2/17/12 12:13 AM, Florent Hivert wrote: >>> By the way: changing P.linear_extensions() to return an enumerated set >>> rather than a plain list could make sense, assuming there is no speed >>> loss. This might require a bit of cythonification; maybe using >>> ClonableArray will be enough. It's s

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

2012-02-17 Thread Nicolas M. Thiery
Hi Andrew, On Thu, Feb 16, 2012 at 08:39:14PM -0800, Andrew Mathas wrote: > OK, it looks like permutations might be innocent and the real culprit > might be e rational functions as suggested by Dima. I profiled the last calculation with run_snake: sage: run_snake("prod( (L[k]-x**c)/(

Re: [sage-combinat-devel] Partition

2012-02-17 Thread Paul-Olivier Dehaye
Hi Rishi, It is a bug, I saw it reported on trac.sagemath.org previously, but can't find it anymore. Paul On Wed, Feb 15, 2012 at 6:46 PM, r Rishikesh wrote: > In sage, the following succeeds. > > sage: Partition([2,0,1]) > > > I would expect this not to succeed. Is this a bug or there is a reaso

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

2012-02-17 Thread Florent Hivert
> > By the way: changing P.linear_extensions() to return an enumerated set > > rather than a plain list could make sense, assuming there is no speed > > loss. This might require a bit of cythonification; maybe using > > ClonableArray will be enough. It's slightly backward incompatible (it > > does

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

2012-02-17 Thread Anne Schilling
Do posets have a latex method? Or can they only be viewed using .show()? Cheers, Anne -- 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 gr

Re: [sage-combinat-devel] lazy enumerated set

2012-02-17 Thread Vincent Delecroix
>> >> I get trouble with TestSuite which only works when elements of the set >> have parents. In particular it does not work in the following case >> {{{ >> sage: from sage.sets.set_from_iterator import EnumeratedSetFromIterator >> sage: E = EnumeratedSetFromIterator(graphs, >> category=InfiniteEnu

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

2012-02-17 Thread Anne Schilling
On 2/16/12 3:26 PM, Nicolas M. Thiery wrote: > On Thu, Feb 16, 2012 at 07:41:52AM -0800, Anne Schilling wrote: >> But how do I do this? Implementing the analogue of the cores method (see >> combinat-queue) >> I get ... >> TypeError: __init__() got an unexpected keyword argument 'parent' > > See m