Skip to content

Commit 95c3209

Browse files
committed
add dimensions to returned values in docstrings
1 parent 700250e commit 95c3209

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

slycot/math.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def mb03vd(n, ilo, ihi, A):
109109
-------
110110
111111
HQ : ndarray
112-
The upper triangle and the first
112+
3D array with same shape as A. The upper triangle and the first
113113
subdiagonal of HQ[:n,:n,0] contain the upper Hessenberg
114114
matrix H_1, and the elements below the first subdiagonal,
115115
with the first column of the array Tau represent the
@@ -122,6 +122,7 @@ def mb03vd(n, ilo, ihi, A):
122122
elementary reflectors. See FURTHER COMMENTS.
123123
124124
Tau : ndarray
125+
2D array with shape (max(1, n-1), p).
125126
The leading n-1 elements in the j-th column contain the
126127
scalar factors of the elementary reflectors used to form
127128
the matrix Q_j, j = 1, ..., p. See FURTHER COMMENTS.
@@ -183,9 +184,6 @@ def mb03vd(n, ilo, ihi, A):
183184
denotes an element of the vector defining H_j(i). (The element
184185
(1,2) in A_p is also unchanged for this example.)
185186
186-
Note that for P = 1, the LAPACK Library routine DGEHRD could be
187-
more efficient on some computer architectures than this routine
188-
(a BLAS 2 version).
189187
"""
190188
hidden = ' (hidden by the wrapper)'
191189
arg_list = ['n', 'p' + hidden,
@@ -235,16 +233,16 @@ def mb03vy(n, ilo, ihi, A, Tau, ldwork=None):
235233
MB03VD.
236234
237235
ldwork : int, optional
238-
The length of the array DWORK. LDWORK >= MAX(1,N).
239-
For optimum performance LDWORK should be larger.
236+
The length of the internal array DWORK. ldwork >= max(1, n).
237+
For optimum performance ldwork should be larger.
240238
241239
242240
Returns
243241
-------
244242
245243
Q : ndarray
246-
Q[:n,:n,j-1] contains the
247-
N-by-N orthogonal matrix Q_j, j = 1, ..., p.
244+
3D array with same shape as A. Q[:n,:n,j-1] contains the
245+
N-by-N orthogonal matrix Q_j, j = 1, ..., p.
248246
249247
Raises
250248
------
@@ -359,6 +357,7 @@ def mb03wd(job, compz, n, ilo, ihi, iloz, ihiz, H, Q, ldwork=None):
359357
-------
360358
361359
T : ndarray
360+
3D array with the same shape as H.
362361
If JOB = 'S', T[:n,:n,0] is upper quasi-triangular in rows
363362
and columns [ilo-1:ihi], with any 2-by-2 diagonal blocks
364363
corresponding to a pair of complex conjugated eigenvalues, and
@@ -367,6 +366,7 @@ def mb03wd(job, compz, n, ilo, ihi, iloz, ihiz, H, Q, ldwork=None):
367366
If job = 'E', T is None
368367
369368
Z : ndarray
369+
3D array with the same shape as Q.
370370
If compz = 'V', or compz = 'I', the leading
371371
N-by-N-by-P part of this array contains the transformation
372372
matrices which produced the Schur form; the
@@ -376,9 +376,10 @@ def mb03wd(job, compz, n, ilo, ihi, iloz, ihiz, H, Q, ldwork=None):
376376
377377
378378
W : ndarray (dtype=complex)
379+
1D array with shape (n).
379380
The computed eigenvalues ilo to ihi. If two eigenvalues
380381
are computed as a complex conjugate pair, they are stored
381-
in consecutive elements of Wr say the i-th and
382+
in consecutive elements of W say the i-th and
382383
(i+1)th, with imag(W][i]) > 0 and imag(W[i+1]) < 0.
383384
If JOB = 'S', the eigenvalues are stored in the same order
384385
as on the diagonal of the Schur form returned in H.

0 commit comments

Comments
 (0)