#15143: Improvements to SetPartitions
-----------------------------+---------------------------------------------
Reporter: tscrim | Owner: sage-combinat
Type: | Status: needs_review
enhancement | Milestone: sage-5.12
Priority: major | Resolution:
Component: | Merged in:
combinatorics | Reviewers: Darij Grinberg, Mike Zabrocki
Keywords: | Work issues:
Authors: Travis | Commit:
Scrimshaw | Stopgaps:
Report Upstream: N/A |
Branch: |
Dependencies: #14234 |
-----------------------------+---------------------------------------------
Changes (by tscrim):
* reviewer: => Darij Grinberg, Mike Zabrocki
Old description:
> This ticket does the following:
>
> - Creates a class for all set partitions.
> - Allows equality between different set partitions of different parents.
> - Implements a total ordering on set partitions based upon ordering the
> parts.
> - Implements a fully consistent string representation.
> - Adds multiple methods, including accessing the base set for the set
> partition.
New description:
This ticket does the following:
- Creates a class for all set partitions.
- Allows equality between different set partitions of different parents.
- Implements a total ordering on set partitions based upon ordering the
parts.
- Implements a fully consistent string representation.
- Adds multiple methods, including accessing the base set for the set
partition.
Apply: [attachment:trac_15143-set_partitions-folded-ts.patch]
--
Comment:
Hey Darij and Mike,
Here's a patch with all of the changes folded in, along with:
- changed `weight` to `size`,
- additions to the `SetPartition` class's documentation about the
terminology,
- tweaks to the `ordered_set_partition_action()` method's docstring (in my
old version, the condition should have been `r <= |A|` and there was some
abuse of variables).
If you're happy with my tweaks, then it's positive_review time.
Thanks,[[BR]]
Travis
--
Ticket URL: <http://trac.sagemath.org/ticket/15143#comment:14>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.