8000 Remove shallow copy of A,B,C,D; Add intent(in,out,copy) in pyf · python-control/Slycot@f93ef47 · GitHub
[go: up one dir, main page]

Skip to content 8000

Commit f93ef47

Browse files
committed
Remove shallow copy of A,B,C,D; Add intent(in,out,copy) in pyf
1 parent 14472a6 commit f93ef47

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

slycot/analysis.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1384,12 +1384,7 @@ def ab13bd(dico, jobn, n, m, p, A, B, C, D, tol = 0.0):
13841384
'D', 'ldd' + hidden, 'nq' + hidden,'tol', 'dwork' + hidden,
13851385
'ldwork' + hidden, 'iwarn', 'info')
13861386

1387-
a = A.copy()
1388-
b = B.copy()
1389-
c = C.copy()
1390-
d = D.copy()
1391-
1392-
out = _wrapper.ab13bd(dico, jobn, n, m, p, a, b, c, d, tol)
1387+
out = _wrapper.ab13bd(dico, jobn, n, m, p, A, B, C, D, tol)
13931388

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

slycot/src/analysis.pyf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -307,13 +307,13 @@ function ab13bd(dico,jobn,n,m,p,a,lda,b,ldb,c,ldc,d,ldd,nq,tol,dwork,ldwork,iwar
307307
integer check(n>=0) :: n
308308
integer check(m>=0) :: m
309309
integer check(p>=0) :: p
310-
double precision dimension(n,n),depend(n) :: a
310+
double precision intent(in,out,copy), dimension(n,n),depend(n) :: a
311311
integer intent(hide),depend(a) :: lda = shape(a,0)
312-
double precision dimension(n,m),depend(n,m) :: b
312+
double precision intent(in,out,copy), dimension(n,m),depend(n,m) :: b
313313
integer intent(hide),depend(b) :: ldb = shape(b,0)
314-
double precision dimension(p,n),depend(n,p) :: c
314+
double precision intent(in,out,copy), dimension(p,n),depend(n,p) :: c
315315
integer intent(hide),depend(c) :: ldc = shape(c,0)
316-
double precision dimension(p,m),depend(m,p) :: d
316+
double precision intent(in,out,copy), dimension(p,m),depend(m,p) :: d
317317
integer intent(hide),depend(d) :: ldd = shape(d,0)
318318
integer intent(out) :: nq
319319
double precision :: tol

0 commit comments

Comments
 (0)
0