#18762: Create coercion between diagram algebras and the symmetric group algebra
-------------------------------------+-------------------------------------
Reporter: ghseeli | Owner:
Type: enhancement | Status: needs_review
Priority: minor | Milestone: sage-6.9
Component: algebra | Resolution:
Keywords: diagram algebra, | Merged in:
partition algebra, days65 | Reviewers:
Authors: George H. | Work issues:
Seelinger | Commit:
Report Upstream: N/A | 2adcfeffa5d87f137ee9010fb69087a2b76e98a7
Branch: | Stopgaps:
u/ghseeli/create_coercion_between_diagram_algebras_and_the_symmetric_group_algebra|
Dependencies: #18720 |
-------------------------------------+-------------------------------------
Comment (by tscrim):
This currently breaks the requirements of a coercion in that the coercion
map must be defined on all elements of the domain. So it will need to be a
conversion, which you can implement in the `_element_constructor_` method
by
{{{#!python
if isinstance(x, SymmetricGroupAlgebra.Element) and
other_conditions_on_parent(x):
return convert_to_element_of_self(x)
}}}
For those diagram algebras which this is well-defined on the entire
domain, you can make the call to ``self`` a coercion in the constructor or
implement:
{{{#!python
def _coerce_map_from_(self, P):
if isinstance(P, SymmetricGroupAlgebra) and other_conditions(P):
return True
return super(self, DiagramAlgebra)._coerce_map_from_(P)
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/18762#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/d/optout.