Skip to content

Commit f2fd0c4

Browse files
committed
change ad07nd docstring sections to numpydoc style
1 parent b9bb765 commit f2fd0c4

File tree

1 file changed

+41
-39
lines changed

1 file changed

+41
-39
lines changed

slycot/analysis.py

Lines changed: 41 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -412,47 +412,49 @@ def ab05nd(n1,m1,p1,n2,A1,B1,C1,D1,A2,B2,C2,D2,alpha=1.0,ldwork=None):
412412
return out[:-1]
413413

414414
def ab07nd(n,m,A,B,C,D,ldwork=None):
415-
""" A_i,B_i,C_i,D_i,rcond = ab07nd(n,m,A,B,C,D,[ldwork])
415+
""" Ai,Bi,Ci,Di,rcond = ab07nd(n,m,A,B,C,D,[ldwork])
416416
417-
To compute the inverse (A_i,B_i,C_i,D_i) of a given system (A,B,C,D).
417+
To compute the inverse (Ai,Bi,Ci,Di) of a given system (A,B,C,D).
418418
419-
Required arguments:
420-
n : input int
421-
The order of the state matrix A. n >= 0.
422-
m : input int
423-
The number of system inputs and outputs. m >= 0.
424-
A : input rank-2 array('d') with bounds (n,n)
425-
The leading n-by-n part of this array must contain the state matrix
426-
A of the original system.
427-
B : input rank-2 array('d') with bounds (n,m)
428-
The leading n-by-m part of this array must contain the input matrix
429-
B of the original system.
430-
C : input rank-2 array('d') with bounds (m,n)
431-
The leading m-by-n part of this array must contain the output matrix
432-
C of the original system.
433-
D : input rank-2 array('d') with bounds (m,m)
434-
The leading m-by-m part of this array must contain the feedthrough
435-
matrix D of the original system.
436-
Optional arguments:
437-
ldwork := None input int
438-
The length of the cache array. The default value is max(1,4*m),
439-
for better performance should be larger.
440-
Return objects:
441-
A_i : rank-2 array('d') with bounds (n,n)
442-
The leading n-by-n part of this array contains the state matrix A_i
443-
of the inverse system.
444-
B_i : rank-2 array('d') with bounds (n,m)
445-
The leading n-by-m part of this array contains the input matrix B_i
446-
of the inverse system.
447-
C_i : rank-2 array('d') with bounds (m,n)
448-
The leading m-by-n part of this array contains the output matrix C_i
449-
of the inverse system.
450-
D_i : rank-2 array('d') with bounds (m,m)
451-
The leading m-by-m part of this array contains the feedthrough
452-
matrix D_i of the inverse system.
453-
rcond : float
454-
The estimated reciprocal condition number of the feedthrough matrix
455-
D of the original system.
419+
Parameters
420+
----------
421+
n : int
422+
The order of the state matrix A. n >= 0.
423+
m : int
424+
The number of system inputs and outputs. m >= 0.
425+
A : (n,n) array_like
426+
The leading n-by-n part of this array must contain the state matrix
427+
A of the original system.
428+
B : (n,m) array_like
429+
The leading n-by-m part of this array must contain the input matrix
430+
B of the original system.
431+
C : (m,n) array_like
432+
The leading m-by-n part of this array must contain the output matrix
433+
C of the original system.
434+
D : (m,m) array_like
435+
The leading m-by-m part of this array must contain the feedthrough
436+
matrix D of the original system.
437+
ldwork : int, optional
438+
The length of the cache array. The default value is max(1,4*m),
439+
for better performance should be larger.
440+
441+
Returns
442+
-------
443+
Ai : (n,n) ndarray
444+
The leading n-by-n part of this array contains the state matrix Ai
445+
of the inverse system.
446+
Bi : (n,m) ndarray
447+
The leading n-by-m part of this array contains the input matrix Bi
448+
of the inverse system.
449+
Ci : (m,n) ndarray
450+
The leading m-by-n part of this array contains the output matrix Ci
451+
of the inverse system.
452+
Di : (m,m) ndarray
453+
The leading m-by-m part of this array contains the feedthrough
454+
matrix Di of the inverse system.
455+
rcond : float
456+
The estimated reciprocal condition number of the feedthrough matrix
457+
D of the original system.
456458
457459
Warns
458460
-----

0 commit comments

Comments
 (0)