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
|
|
||
| # 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.
Please increase the count from above.
A reformat of the whle ab block seems in order, too
|
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
| 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.
| """ 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.
| 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.
unittest.TestCase not needed
Co-authored-by: Ben Greiner <code@bnavigator.de>
1df9cf7 to
8ad0236
Compare
Add ab04md
TODO:
output