Skip to content

Commit 91b4fc6

Browse files
committed
convolution: rename variables
1 parent 0710136 commit 91b4fc6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/sage/combinat/k_regular_sequence.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -748,18 +748,18 @@ def tensor_product(left, right):
748748
left = vector(tensor_product(Matrix(self.left), Matrix(other.left)))
749749
right = vector(tensor_product(Matrix(self.right), Matrix(other.right)))
750750

751-
def linear_representation_morphism_recurrence_order_1(A, B):
751+
def linear_representation_morphism_recurrence_order_1(C, D):
752752
r"""
753753
Return the morphism of a linear representation
754754
for the sequence `z_n` satisfying
755-
`z_{2n+r} = A_r z_n + B_r z_{n-1}`.
755+
`z_{kn+r} = C_r z_n + D_r z_{n-1}`.
756756
"""
757-
Z = zero_matrix(A[0].dimensions()[0])
757+
Z = zero_matrix(C[0].dimensions()[0])
758758

759759
def blocks(r):
760-
upper = list([A[s], B[s], Z]
760+
upper = list([C[s], D[s], Z]
761761
for s in reversed(srange(max(0, r-2), r+1)))
762-
lower = list([Z, A[s], B[s]]
762+
lower = list([Z, C[s], D[s]]
763763
for s in reversed(srange(k-3+len(upper), k)))
764764
return upper + lower
765765

0 commit comments

Comments
 (0)