8000 Add ab04md by KybernetikJo · Pull Request #201 · python-control/Slycot · GitHub
[go: up one dir, main page]

Skip to content

Add ab04md #201

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Aug 24, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update docstring, minor fixes
  • Loading branch information
KybernetikJo committed Aug 23, 2023
commit 2289d93bbf8eb579327da9e6087d7753b7888932
20 changes: 11 additions & 9 deletions slycot/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def ab01nd(n, m, A, B, jobz='N', tol=0, ldwork=None):
return Ac, Bc, ncont, indcon, nblk, Z, tau

def ab04md(type_t, n, m, p, A, B, C, D, alpha=1.0, beta=1.0, ldwork=None):
""" At,Bt,Ct,Dt = ab04md(type_bn, n, m, p, A, B, C, D, [alpha, beta,ldwork])
""" At,Bt,Ct,Dt = ab04md(type_t, n, m, p, A, B, C, D, [alpha, beta,ldwork])

Parameters
----------
Expand All @@ -159,27 +159,29 @@ def ab04md(type_t, n, m, p, A, B, C, D, alpha=1.0, beta=1.0, ldwork=None):
p : int
The number of rows of matrix C. It represents the dimension of
the output vector. p > 0.
A : (n,n) ndarray
A : (n,n) array_like
The leading n-by-n part of this array must contain the system state
matrix A.
B : (n,m) ndarray
B : (n,m) array_like
The leading n-by-m part of this array must contain the system input
matrix B.
C : (p,n) ndarray
C : (p,n) array_like
The leading p-by-n part of this array must contain the system output
matrix C.
D : (p,m) ndarray
D : (p,m) array_like
The leading p-by-m part of this array must contain the system direct
transmission matrix D.
alpha : double
alpha : double, optional
Parameter specifying the bilinear transformation.
Recommended values for stable systems: alpha = 1, alpha != 0,
beta : double
Default is 1.0.
beta : double, optional
Parameter specifying the bilinear transformation.
Recommended values for stable systems: beta = 1, beta != 0,
ldwork : int
Default is 1.0.
ldwork : int, optional
The length of the cache array.
ldwork >= max(1, n)
ldwork >= max(1, n), default is max(1, n)
Returns
-------
At : (n,n) ndarray
Expand Down
0