#16926: Merge the features of SymmetricGroupAlgebra and SymmetricGroup.algebra
-------------------------------------+-------------------------------------
Reporter: nthiery | Owner:
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-6.4
Component: combinatorics | Resolution:
Keywords: | Merged in:
Authors: Travis Scrimshaw | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
public/combinat/fix_sga-16926 | caf4f43a19035e37cb4b4c67f0f040af84783c9e
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by darij):
Part of the review done (sorry, I'm slow). I fear I need explanations on
this:
{{{
+ def __mul__(self, other):
+ r"""
+ Multiply ``self`` and ``other``.
+
+ EXAMPLES::
+
+ sage: P = Permutations(4)
+ sage: P.simple_reflection(1) * Permutation([6,5,4,3,2,1])
+ [5, 6, 4, 3, 2, 1]
+ """
+ if (not isinstance(other, StandardPermutations_n.Element)
+ or self.parent() != other.parent()):
+ return Permutation.__mul__(self, other)
+ return self._mul_(other)
+
+ def _mul_(self, other):
+ r"""
+ Multiply ``self`` and ``other``.
+
+ EXAMPLES::
+
+ sage: P = Permutations(4)
+ sage: P.prod(P.gens()).parent() is P
+ True
+ """
+ p = list(Permutation.__mul__(self, other))
+ return self.__class__(self.parent(), p)
}}}
or someone else will have to vow for its correctness.
--
Ticket URL: <http://trac.sagemath.org/ticket/16926#comment:29>
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.