#11165: core and quotient of partitions should be partitions
------------------------------+---------------------------------------------
Reporter: hivert | Owner: sage-combinat
Type: enhancement | Status: new
Priority: major | Milestone: sage-4.7
Component: combinatorics | Keywords: partitions core quotient
Author: Florent Hivert | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
------------------------------+---------------------------------------------
Currently the methods core and quotient returns respectively a list and a
list
of list:
{{{
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'>
}}}
Mathematically, those lists are partitions and moreover list are not
hashable. As a consequence, in most use we have no choice but to change
them
to partitions. So after the patch, core should returns a partition and
quotient a tuple of partitions.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11165>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.