Skip to content

Commit cbd160c

Browse files
committed
docstring fix of index and slice
1 parent 832c5b2 commit cbd160c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

slycot/math.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def mb03vd(n, ilo, ihi, A):
9494
It is assumed that all matrices A_j, j = 2, ..., p, are
9595
already upper triangular in rows and columns [:ilo] and
9696
[ihi:n], and A_1 is upper Hessenberg in rows and columns
97-
[:ilo] and [ihi:n], with A_1[ilo-1,ilo] = 0 (unless
97+
[:ilo-1] and [ihi:n], with A_1[ilo-1,ilo-2] = 0 (unless
9898
ilo = 1), and A_1[ihi,ihi-1] = 0 (unless ihi = n).
9999
If this is not the case, ilo and ihi should be set to 1
100100
and n, respectively.
@@ -115,7 +115,7 @@ def mb03vd(n, ilo, ihi, A):
115115
with the first column of the array Tau represent the
116116
orthogonal matrix Q_1 as a product of elementary
117117
reflectors. See FURTHER COMMENTS.
118-
For j > 1, the upper triangle of HQ[:n,_n,j-1]
118+
For j > 1, the upper triangle of HQ[:n,:n,j-1]
119119
contains the upper triangular matrix H_j, and the elements
120120
below the diagonal, with the j-th column of the array TAU
121121
represent the orthogonal matrix Q_j as a product of

0 commit comments

Comments
 (0)