Re: [sage-combinat-devel] Re: Category Questions

2010-01-12 Thread Jason Bandlow
Thanks for your comments Nicolas! Some of my thoughts... Nicolas M. Thiery wrote: > - self._monomial_coefficients is specific to the >CombinatorialFreeModule implementation. But you can use directly >x[k] to get the coefficient of k in an element x of a module with >basis. Very good

Re: [sage-combinat-devel] Re: Category Questions

2010-01-12 Thread Nicolas M. Thiery
On Tue, Jan 12, 2010 at 03:58:32PM -0500, Jason Bandlow wrote: > > phi is constructed from f, which itself can't be pickled: > Thanks for your help on this! My pleasure :-) > I now have a patch up at > > http://trac.sagemath.org/sage_trac/ticket/7914 > > in case you want to see if I understoo

[sage-combinat-devel] Re: Category Questions

2010-01-12 Thread Jason Bandlow
Hi Nicolas, Nicolas M. Thiery wrote: > phi is constructed from f, which itself can't be pickled: Thanks for your help on this! I now have a patch up at http://trac.sagemath.org/sage_trac/ticket/7914 in case you want to see if I understood you. :) Cheers, Jason -- You received this message b

[sage-combinat-devel] Re: Partitions bug with max_slope?

2010-01-12 Thread John H Palmieri
On Jan 9, 3:58 am, "Nicolas M. Thiery" wrote: > On Sat, Jan 09, 2010 at 10:53:30AM +0100, Vincent Delecroix wrote: > > I get the following with sage-4.3, is it normal to have [2, 1] and [1, > > 2] as partitions ? > > > {{{ > > sage: for p in Partitions(3, max_slope=1): > > :     print p > > ..

Re: [sage-combinat-devel] Re: [sage-devel] sage.combinat.combinat.combinations and sage.combinat.combination.Combinations

2010-01-12 Thread Vincent Delecroix
Dear Tim, dear sage-combinat, >> The huge speed differnce can be seen here: >> >>    {{{ >>    sage: timeit('[Combinations(range(i), j).list() for (i, j) in >>    CartesianProduct(range(15), range(15))]') >>    5 loops, best of 3: 449 ms per loop >> >>    sage: timeit('[combinations(range(i), j) f

Re: [sage-combinat-devel] Re: Category Questions

2010-01-12 Thread Nicolas M. Thiery
Hi Jason! On Tue, Jan 12, 2010 at 12:19:36PM -0500, Jason Bandlow wrote: > While working on this, I added a ``TestSuite(phi)`` test where ``phi`` > is a TriangularModuleMorphism, mimicking what was done for > DiagonalModuleMorphism. Good idea! > Unfortunately, pickling fails. I don't re

[sage-combinat-devel] Re: [sage-devel] sage.combinat.combinat.combinations and sage.combinat.combination.Combinations

2010-01-12 Thread Nicolas M. Thiery
Dear Tim, On Tue, Jan 12, 2010 at 10:58:23PM +0800, Tim Joseph Dumol wrote: >I've been wondering why sage.combinat.combinat.combinations still exists, >when sage.combinat.combination.Combinations is much faster, being native >Sage code, and thus not requiring GAP interfacing (a

[sage-combinat-devel] Re: Category Questions

2010-01-12 Thread Jason Bandlow
Nicolas M. Thiery wrote: > Hey Jason, > In fact, I was about to send you an e-mail for two things :-) > > - Warn you about the rebase + little fixes in >triangular-morphisms-jb.patch and ask you about your time-line for >finalizing it. While working on this, I added a ``TestSuite(p