Skip to content

Commit 6ab16c8

Browse files
committed
Adjust sb03md docstring
1 parent ef3d67d commit 6ab16c8

File tree

1 file changed

+20
-22
lines changed

1 file changed

+20
-22
lines changed

slycot/synthesis.py

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -698,26 +698,16 @@ def sb03md57(A, U=None, C=None,
698698
699699
Parameters
700700
----------
701-
n : int
702-
The order of the matrices A, X, and C. n > 0.
703701
A : (n, n) array_like
704-
On entry, the leading n-by-n part of this array must contain the
705-
matrix A. If fact = 'F', then A contains an upper quasi-triangular
702+
If fact = 'F', then A contains an upper quasi-triangular
706703
matrix in Schur canonical form; the elements below the upper
707704
Hessenberg part of the array A are not referenced.
708-
On exit, the leading n-by-n upper Hessenberg part of this array
709-
contains the upper quasi-triangular matrix in Schur canonical form
710-
from the Schur factorization of A. The contents of array A is not
711-
modified if fact = 'F'.
712705
U : (n, n) array_like
713-
If fact = 'F', then U is an input argument and on entry the leading
714-
n-by-n part of this array must contain the orthogonal matrix U of
706+
If fact = 'F', then this array must contain the orthogonal matrix U of
715707
the real Schur factorization of A.
716-
If fact = 'N', then U is an output argument and on exit, it contains
717-
the orthogonal n-by-n matrix from the real Schur factorization of A.
718708
C : (n, n) array_like
719-
If job = 'X' or 'B', the leading n-by-n part of this array must
720-
contain the symmetric matrix C. If job = 'S', C is not referenced.
709+
If job = 'X' or 'B', this array must contain the symmetric matrix C.
710+
If job = 'S', C is not referenced.
721711
dico : {'C', 'D'}
722712
Specifies the equation from which X is to be determined as follows:
723713
:= 'C': Equation (1), continuous-time case;
@@ -745,6 +735,14 @@ def sb03md57(A, U=None, C=None,
745735
746736
Returns
747737
-------
738+
Ar : (n, n) ndarray
739+
The leading n-by-n upper Hessenberg part of this array
740+
contains the upper quasi-triangular matrix in Schur canonical form
741+
from the Schur factorization of A. The content of array A is not
742+
modified if fact = 'F'.
743+
Ur : (n, n) ndarray
744+
If fact = 'N', this arrray contains the orthogonal n-by-n matrix
745+
from the real Schur factorization of A.
748746
X : (n, n) ndarray
749747
If job = 'X' or 'B', the leading n-by-n part contains the symmetric
750748
solution matrix.
@@ -761,7 +759,7 @@ def sb03md57(A, U=None, C=None,
761759
relative error in the computed solution, measured in the Frobenius
762760
norm: norm(X - X_true)/norm(X_true).
763761
w : (n, ) complex ndarray
764-
If fact = 'N', this array contain the eigenvalues of A.
762+
If fact = 'N', this array contains the eigenvalues of A.
765763
766764
Warns
767765
-----
@@ -804,7 +802,7 @@ def sb03md57(A, U=None, C=None,
804802

805803
def sb03md(n, C, A, U, dico, job='X',fact='N',trana='N',ldwork=None):
806804
""" X,scale,sep,ferr,w = sb03md(n,C,A,U,dico,[job,fact,trana,ldwork])
807-
805+
808806
.. deprecated:: 0.5
809807
This function uses a call signature of SB03MD prior to SLICOT version
810808
5.7. Use `sb03md57` instead.
@@ -2474,15 +2472,15 @@ def sb10fd(n,m,np,ncon,nmeas,gamma,A,B,C,D,tol=0.0,ldwork=None):
24742472
24752473
To compute the matrices of an H-infinity (sub)optimal n-state
24762474
controller
2477-
2475+
24782476
::
24792477
24802478
| AK | BK |
24812479
K = |----|----|,
24822480
| CK | DK |
24832481
24842482
using modified Glover's and Doyle's 1988 formulas, for the system
2485-
2483+
24862484
::
24872485
24882486
| A | B1 B2 | | A | B |
@@ -2495,7 +2493,7 @@ def sb10fd(n,m,np,ncon,nmeas,gamma,A,B,C,D,tol=0.0,ldwork=None):
24952493
of measurements (nmeas) being provided to the controller.
24962494
24972495
It is assumed that
2498-
2496+
24992497
::
25002498
25012499
(A1) (A,B2) is stabilizable and (C2,A) is detectable,
@@ -2614,7 +2612,7 @@ def sb10fd(n,m,np,ncon,nmeas,gamma,A,B,C,D,tol=0.0,ldwork=None):
26142612
26152613
::
26162614
2617-
| A-j*omega*I B2 |
2615+
| A-j*omega*I B2 |
26182616
| C1 D12 |
26192617
26202618
had no full column rank in respect to the tolerance eps
@@ -2642,7 +2640,7 @@ def sb10fd(n,m,np,ncon,nmeas,gamma,A,B,C,D,tol=0.0,ldwork=None):
26422640
26432641
|A B2 |, |A B1 |, D12 or D21).
26442642
|C1 D12| |C2 D21|
2645-
2643+
26462644
:info = 6:
26472645
The controller is not admissible (too small value
26482646
of gamma)
@@ -2657,7 +2655,7 @@ def sb10fd(n,m,np,ncon,nmeas,gamma,A,B,C,D,tol=0.0,ldwork=None):
26572655
:info = 9:
26582656
The determinant of ``Im2 + Tu*D11HAT*Ty*D22`` is zero
26592657
[3]_.
2660-
2658+
26612659
Notes
26622660
-----
26632661
Method

0 commit comments

Comments
 (0)