Skip to content

Commit

Permalink
Add shallow copy to ab13bd, fix reference call of state space paramet…
Browse files Browse the repository at this point in the history
…ers (A,B,C,D)
  • Loading branch information
KybernetikJo committed Jul 19, 2023
1 parent d4ab543 commit baf29e7
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions slycot/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -1378,13 +1378,19 @@ def ab13bd(dico, jobn, n, m, p, A, B, C, D, tol = 0.0):
denominator of `G` (see the SLICOT subroutine SB08DD).
"""

out = _wrapper.ab13bd(dico, jobn, n, m, p, A, B, C, D, tol)

hidden = ' (hidden by the wrapper)'
arg_list = ('dico', 'jobn', 'n', 'm', 'p',
'A', 'lda' + hidden, 'B', 'ldb' + hidden, 'C', 'ldc' + hidden,
'D', 'ldd' + hidden, 'nq' + hidden,'tol', 'dwork' + hidden,
'ldwork' + hidden, 'iwarn', 'info')

a = A.copy()
b = B.copy()
c = C.copy()
d = D.copy()

out = _wrapper.ab13bd(dico, jobn, n, m, p, a, b, c, d, tol)

raise_if_slycot_error(out[-2:], arg_list, ab13bd.__doc__, locals())
return out[0]

Expand Down

0 comments on commit baf29e7

Please sign in to comment.