On 4/9/11 11:11 AM, Florent Hivert wrote:
Hi there,
Currently the methods core and quotient returns respectively a list and a list
of list. Does anyone object on having them return a partition and a tuple of
partition ?
sage: Partition([7,7,5,3,3,3,1]).core(3)
[1, 1]
sage: type(Partition([7,7,5,3,3,3,1]).core(3))
<type 'list'>
sage: sage: Partition([7,7,5,3,3,3,1]).quotient(3)
[[2], [1], [2, 2, 2]]
sage: type(Partition([7,7,5,3,3,3,1]).quotient(3)[0])
<type 'list'>
In the long term, there could be a particular class for cores (there is
already a prototype in the k-tableaux patch). But on the contrary of what is
in this patch, I've rather have this class inherits from partitions. Any
comments ?
Sounds good to me.
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 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.