#12571: Implementation of shifted shuffle of permutations
------------------------------+---------------------------------------------
Reporter: giraudo | Owner: sage-combinat
Type: enhancement | Status: new
Priority: major | Milestone: sage-5.0
Component: combinatorics | Keywords: Permutations; Shuffle
Work_issues: | Upstream: N/A
Reviewer: Florent Hivert | Author: Samuele Giraudo
Merged: | Dependencies: #12569
------------------------------+---------------------------------------------
Comment(by nthiery):
Replying to [comment:2 hivert]:
> - Are you sure that you didn't mixed up the convention for over/under ?
To
> break the ambiguity, I'd rather call them {{{shifted_concatenation}}}
and
> {{{shifted_anti_concatenation}}}. Or maybe only one function
> {{{shifted_concatenation}}}, with an optional parameter {{{shift}}}
which can
> be either {{{"left"}}} or {{{"right"}}}. Or even
> {{{shift_right (True by default)}}}...
Quite a few functions take an argument side="left"/"right", more often
than not the default being "right". If
{{{
x.shifted_concatenation(y, side="right")
}}}
sounds unambiguous enough about the shift being on y (and not the
concatenation being on the right), I vote for this. Otherwise
shift="left"/"right"
Cheers,
Nicolas
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12571#comment:3>
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.