Skip to content

Commit 1050e70

Browse files
committed
fix left/right vector sequence issue in docstrings
1 parent 1c56e7f commit 1050e70

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/sage/combinat/k_regular_sequence.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,20 +1016,20 @@ def guess(self, f, n_verify=100, max_exponent=10, sequence=None):
10161016
10171017
ALGORITHM:
10181018
1019-
For the purposes of this description, the left vector valued sequence
1020-
associated with a regular sequence consists of the left vector
1021-
multiplied by the corresponding matrix product, but without the right
1022-
vector of the regular sequence.
1019+
For the purposes of this description, the right vector valued sequence
1020+
associated with a regular sequence consists of the
1021+
corresponding matrix product multiplied by the right vector,
1022+
but without the right vector of the regular sequence.
10231023
1024-
The algorithm maintains a left vector valued sequence consisting
1025-
of the left vector valued sequence of the argument ``sequence``
1024+
The algorithm maintains a right vector valued sequence consisting
1025+
of the right vector valued sequence of the argument ``sequence``
10261026
(replaced by an empty tuple if ``sequence`` is ``None``) plus several
10271027
components of the shape `m \mapsto f(k^t\cdot m +r)` for suitable
10281028
``t`` and ``r``.
10291029
10301030
Implicitly, the algorithm also maintains a `d \times n_\mathrm{verify}` matrix ``A``
1031-
(where ``d`` is the dimension of the left vector valued sequence)
1032-
whose columns are the current left vector valued sequence evaluated at
1031+
(where ``d`` is the dimension of the right vector valued sequence)
1032+
whose columns are the current right vector valued sequence evaluated at
10331033
the non-negative integers less than `n_\mathrm{verify}` and ensures that this
10341034
matrix has full row rank.
10351035
@@ -1282,12 +1282,12 @@ def guess(self, f, n_verify=100, max_exponent=10, sequence=None):
12821282
# `k**t * m + r`
12831283

12841284
# The elements of `lines` will correspond to the current components
1285-
# of the left vector valued sequence described in the algorithm section
1285+
# of the right vector valued sequence described in the algorithm section
12861286
# of the docstring.
12871287

12881288
def values(m, lines):
12891289
"""
1290-
Return current (as defined by ``lines``) left vector valued
1290+
Return current (as defined by ``lines``) right vector valued
12911291
sequence for argument ``m``.
12921292
"""
12931293
return tuple(seq(m)) + tuple(f(k**t_R * m + r_R) for t_R, r_R in lines)
@@ -1302,7 +1302,7 @@ def some_inverse_U_matrix(lines):
13021302
13031303
The output is the inverse of the invertible submatrix and
13041304
the corresponding list of column indices (i.e., arguments to
1305-
the current left vector valued sequence).
1305+
the current right vector valued sequence).
13061306
"""
13071307
d = len(seq(0)) + len(lines)
13081308

0 commit comments

Comments
 (0)