-
Notifications
You must be signed in to change notification settings - Fork 42
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
Add ab04md #201
Add ab04md #201
Conversation
I have added the docstring, 2 unittests and discussed f2py behavior in #200. I would also keep here f2py intent(in,out,copy) for the state space matrices A,B,C,D. Remark: |
slycot/__init__.py
Outdated
@@ -13,7 +13,7 @@ | |||
# import slycot.examples | |||
|
|||
# Analysis routines (15/40 wrapped) | |||
from .analysis import ab01nd, ab05md, ab05nd, ab07nd, ab08nd, ab08nz | |||
from .analysis import ab01nd, ab04md, ab05md, ab05nd, ab07nd, ab08nd, ab08nz |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please increase the count from above.
A reformat of the whle ab block seems in order, too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for not being responsive as usual. I made a few remarks about formal things. |
I have incorporated the suggestions and tried to improve the docstrings. I think we would need templates to unify the docstrings of all routines to meet the numpydoc specification. |
slycot/analysis.py
Outdated
@@ -139,6 +139,79 @@ def ab01nd(n, m, A, B, jobz='N', tol=0, ldwork=None): | |||
Z = 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]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
""" 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]) |
slycot/analysis.py
Outdated
D : (p,m) ndarray | ||
The leading p-by-m part of this array must contain the system direct | ||
transmission matrix D. | ||
alpha : double |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alpha : double | |
alpha : double, optional |
slycot/tests/test_ab04md.py
Outdated
from numpy.testing import assert_equal, assert_allclose | ||
|
||
|
||
class test_ab04md(unittest.TestCase): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unittest.TestCase
not needed
1df9cf7
to
8ad0236
Compare
Add ab04md
TODO:
output