Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Updating docstring based on comments by Darij.
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis Scrimshaw committed May 24, 2019
1 parent c822b3f commit c54aef5
Showing 1 changed file with 6 additions and 24 deletions.
30 changes: 6 additions & 24 deletions src/sage/combinat/permutation.py
Original file line number Diff line number Diff line change
Expand Up @@ -6710,18 +6710,7 @@ def has_left_descent(self, i, mult=None):
A *left descent* of a permutation `\pi \in S_n` means an index
`i \in \{ 1, 2, \ldots, n-1 \}` such that
`s_i \circ \pi` has smaller length than `\pi`. Here, `\circ`
denotes the multiplication of `S_n`. How it is defined depends
on the ``mult`` variable in
:meth:`Permutations.options`. If this variable is set
to ``'l2r'``, then the multiplication is defined by the rule
`(\alpha \beta) (x) = \beta( \alpha (x) )` for `\alpha,
\beta \in S_n` and `x \in \{ 1, 2, \ldots, n \}`; then, a left
descent of `\pi` is an index `i \in \{ 1, 2, \ldots, n-1 \}`
satisfying `\pi(i) > \pi(i+1)`. If this variable is set
to ``'r2l'``, then the multiplication is defined by the rule
`(\alpha \beta) (x) = \alpha( \beta (x) )` for `\alpha,
\beta \in S_n` and `x \in \{ 1, 2, \ldots, n \}`; then, a left
`s_i \circ \pi` has smaller length than `\pi`. Thus, a left
descent of `\pi` is an index `i \in \{ 1, 2, \ldots, n-1 \}`
satisfying `\pi^{-1}(i) > \pi^{-1}(i+1)`.
Expand Down Expand Up @@ -6762,18 +6751,7 @@ def has_right_descent(self, i, mult=None):
A *right descent* of a permutation `\pi \in S_n` means an index
`i \in \{ 1, 2, \ldots, n-1 \}` such that
`\pi \circ s_i` has smaller length than `\pi`. Here, `\circ`
denotes the multiplication of `S_n`. How it is defined depends
on the ``mult`` variable in
:meth:`Permutations.options`. If this variable is set
to ``'l2r'``, then the multiplication is defined by the rule
`(\alpha \beta) (x) = \beta( \alpha (x) )` for `\alpha,
\beta \in S_n` and `x \in \{ 1, 2, \ldots, n \}`; then, a right
descent of `\pi` is an index `i \in \{ 1, 2, \ldots, n-1 \}`
satisfying `\pi^{-1}(i) > \pi^{-1}(i+1)`. If this variable is
set to ``'r2l'``, then the multiplication is defined by the
rule `(\alpha \beta) (x) = \alpha( \beta (x) )` for `\alpha,
\beta \in S_n` and `x \in \{ 1, 2, \ldots, n \}`; then, a right
`\pi \circ s_i` has smaller length than `\pi`. Thus, a right
descent of `\pi` is an index `i \in \{ 1, 2, \ldots, n-1 \}`
satisfying `\pi(i) > \pi(i+1)`.
Expand Down Expand Up @@ -6876,6 +6854,8 @@ def apply_simple_reflection_left(self, i):
Return ``self`` multiplied by the simple reflection ``s[i]``
on the left.
This acts by switching the entries in positions `i` and `i+1`.
.. WARNING::
This ignores the multiplication convention in order
Expand All @@ -6900,6 +6880,8 @@ def apply_simple_reflection_right(self, i):
Return ``self`` multiplied by the simple reflection ``s[i]``
on the right.
This acts by switching the entries equal `i` and `i+1`.
.. WARNING::
This ignores the multiplication convention in order
Expand Down

0 comments on commit c54aef5

Please sign in to comment.