#10931: fix relabelling and implement equality of structures of combinatorial
species
-----------------------------+----------------------------------------------
Reporter: mantepse | Owner: sage-combinat
Type: PLEASE CHANGE | Status: new
Priority: minor | Milestone:
Component: combinatorics | Keywords: structures of species
Author: Martin Rubey | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
-----------------------------+----------------------------------------------
This patch fixes an oversight concerning the relabelling of structures of
compositions of species and implements equality for structures.
In particular, it modifies the list method for partitions to take into
account the labels, so it can be used by the methods change_labels and
transport of CompositionSpeciesStructure.
Moreover, it modifies __eq__ of GenericSpeciesStructure to raise a
NotImplementedError in case equality for the structures of the species in
question has not been implemented. Ideally, the error message should
state which species that is, but I do not know how to access that
information. Same thing for change_labels in GenericSpeciesStructure.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10931>
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.