@@ -319,71 +319,77 @@ def ab05nd(n1,m1,p1,n2,A1,B1,C1,D1,A2,B2,C2,D2,alpha=1.0,ldwork=None):
319319 To obtain the state-space model (A,B,C,D) for the feedback inter-connection
320320 of two systems, each given in state-space form.
321321
322- Required arguments:
323- n1 : input int
324- The number of state variables in the first system, i.e. the order
325- of the matrix A1. n1 > 0.
326- m1 : input int
327- The number of input variables for the first system and the number
328- of output variables from the second system. m1 > 0.
329- p1 : input int
330- The number of output variables from the first system and the number
331- of input variables for the second system. p1 > 0.
332- n2 : input int
333- The number of state variables in the second system, i.e. the order
334- of the matrix A2. n2 > 0.
335- A1 : input rank-2 array('d') with bounds (n1,n1)
336- The leading n1-by-n1 part of this array must contain the state
337- transition matrix A1 for the first system.
338- B1 : input rank-2 array('d') with bounds (n1,m1)
339- The leading n1-by-m1 part of this array must contain the input/state
340- matrix B1 for the first system.
341- C1 : input rank-2 array('d') with bounds (p1,n1)
342- The leading p1-by-n1 part of this array must contain the state/output
343- matrix C1 for the first system.
344- D1 : input rank-2 array('d') with bounds (p1,m1)
345- The leading p1-by-m1 part of this array must contain the input/output
346- matrix D1 for the first system.
347- A2 : input rank-2 array('d') with bounds (n2,n2)
348- The leading n2-by-n2 part of this array must contain the state
349- transition matrix A2 for the second system.
350- B2 : input rank-2 array('d') with bounds (n2,p1)
351- The leading n2-by-p1 part of this array must contain the input/state
352- matrix B2 for the second system.
353- C2 : input rank-2 array('d') with bounds (m1,n2)
354- The leading m1-by-n2 part of this array must contain the state/output
355- matrix C2 for the second system.
356- D2 : input rank-2 array('d') with bounds (m1,p1)
357- The leading m1-by-p1 part of this array must contain the input/output
358- matrix D2 for the second system.
359- Optional arguments:
360- alpha := 1.0 input float
361- A coefficient multiplying the transfer-function matrix (or the
362- output equation) of the second system. i.e alpha = +1 corresponds
363- to positive feedback, and alpha = -1 corresponds to negative
364- feedback.
365- ldwork := max(p1*p1,m1*m1,n1*p1) input int
366- The length of the cache array. ldwork >= max(p1*p1,m1*m1,n1*p1).
367- Return objects:
368- n : int
369- The number of state variables (n1 + n2) in the connected system, i.e.
370- the order of the matrix A, the number of rows of B and the number of
371- columns of C.
372- A : rank-2 array('d') with bounds (n1+n2,n1+n2)
373- The leading n-by-n part of this array contains the state transition
374- matrix A for the connected system.
375- B : rank-2 array('d') with bounds (n1+n2,m1)
376- The leading n-by-m1 part of this array contains the input/state
377- matrix B for the connected system.
378- C : rank-3 array('d') with bounds (p1,n1,n2)
379- The leading p1-by-n part of this array contains the state/output
380- matrix C for the connected system.
381- D : rank-2 array('d') with bounds (p1,m1)
382- The leading p1-by-m1 part of this array contains the input/output
383- matrix D for the connected system.
322+ Parameters
323+ ----------
324+ n1 : int
325+ The number of state variables in the first system, i.e. the order
326+ of the matrix A1. n1 > 0.
327+ m1 : int
328+ The number of input variables for the first system and the number
329+ of output variables from the second system. m1 > 0.
330+ p1 : int
331+ The number of output variables from the first system and the number
332+ of input variables for the second system. p1 > 0.
333+ n2 : int
334+ The number of state variables in the second system, i.e. the order
335+ of the matrix A2. n2 > 0.
336+ A1 : (n1,n1) array_like
337+ The leading n1-by-n1 part of this array must contain the state
338+ transition matrix A1 for the first system.
339+ B1 : (n1,m1) array_like
340+ The leading n1-by-m1 part of this array must contain the input/state
341+ matrix B1 for the first system.
342+ C1 : (p1,n1) array_like
343+ The leading p1-by-n1 part of this array must contain the state/output
344+ matrix C1 for the first system.
345+ D1 : (p1,m1) array_like
346+ The leading p1-by-m1 part of this array must contain the input/output
347+ matrix D1 for the first system.
348+ A2 : (n2,n2) array_like
349+ The leading n2-by-n2 part of this array must contain the state
350+ transition matrix A2 for the second system.
351+ B2 : (n2,p1) array_like
352+ The leading n2-by-p1 part of this array must contain the input/state
353+ matrix B2 for the second system.
354+ C2 : (m1,n2) array_like
355+ The leading m1-by-n2 part of this array must contain the state/output
356+ matrix C2 for the second system.
357+ D2 : (m1,p1) array_like
358+ The leading m1-by-p1 part of this array must contain the input/output
359+ matrix D2 for the second system.
360+ alpha : float, optional
361+ A coefficient multiplying the transfer-function matrix (or the
362+ output equation) of the second system. i.e alpha = +1 corresponds
363+ to positive feedback, and alpha = -1 corresponds to negative
364+ feedback.
365+ Default is `1.0`.
366+ ldwork : int, optional
367+ The length of the cache array. ldwork >= max(p1*p1,m1*m1,n1*p1).
368+ Default is max(p1*p1,m1*m1,n1*p1).
369+
370+ Returns
371+ -------
372+ n : int
373+ The number of state variables (n1 + n2) in the connected system, i.e.
374+ the order of the matrix A, the number of rows of B and the number of
375+ columns of C.
376+ A : (n1+n2,n1+n2) ndarray
377+ The leading n-by-n part of this array contains the state transition
378+ matrix A for the connected system.
379+ B : (n1+n2,m1) ndarray
380+ The leading n-by-m1 part of this array contains the input/state
381+ matrix B for the connected system.
382+ C : (p1,n1,n2) ndarray
383+ The leading p1-by-n part of this array contains the state/output
384+ matrix C for the connected system.
385+ D : (p1,m1) ndarray
386+ The leading p1-by-m1 part of this array contains the input/output
387+ matrix D for the connected system.
384388
385389 Raises
386390 ------
391+ SlycotParameterError
392+ :info = -i: the i-th argument had an illegal value
387393 SlycotArithmeticError
388394 :1 <= info <= p1:
389395 the system is not completely controllable. That is, the matrix
0 commit comments