Hi Nathann,

I think the deprecation message is plain wrong, and it should be
Partitions(n, length=k).cardinality().
However, this is nowhere near the speed of the deprecated
number_of_partitions(n, k)... no idea what happened here!

  Best regards,
  Dairj

On Fri, Nov 29, 2013 at 1:13 PM, Nathann Cohen <nathann.co...@gmail.com> wrote:
> Hellooooooooo everybody !
>
> Because of my previous message on this forum I am now fixing doctests in the
> combinat/ folder. I have a problem with the following which appears in
> partition.py :
>
> sage: number_of_partitions(10,2)
>         doctest:1: DeprecationWarning:
> sage.combinat.number_of_partitions(size, level) is deprecated. Use
> PartitionTuples(level, size).cardinality() instead.
>         See http://trac.sagemath.org/13072 for details.
>         5
>
> How can PartitionsTuples be used instead of number_of_partitions ?
>
> I tried that :
>
> sage: PartitionTuples(10,2).cardinality()
> 65
> sage: PartitionTuples(2,10).cardinality()
> 481
>
> None of them seems to fit. Plus I have no idea on earth what the doc of
> PartitionTuples means, and I have no idea on earth why anybody would look
> for PartitionTuples instead of number_of_partitions.
>
> Soo.. "Help" please. I'm stuck again :-P
>
> Nathann
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-combinat-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-combinat-devel+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-combinat-devel@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-combinat-devel.
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-combinat-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-combinat-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-combinat-devel.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to