scipy.linalg.lapack.dtgsyl#
- scipy.linalg.lapack.dtgsyl(a, b, c, d, e, f, trans='N', ijob=0, lwork=2 * m * n, overwrite_c=0, overwrite_f=0) = <flapack function dtgsyl>#
Solve the generalized Sylvester equations (LAPACK
dtgsyl).Solves
a @ r - l @ b == scale * ctogether withd @ r - l @ e == scale * ffor the pair(r, l), which overwrites(c, f). The.pyfdeclares only the real flavors.- Parameters:
- andarray
Upper quasi-triangular matrix of shape
(m, m).- bndarray
Upper quasi-triangular matrix of shape
(n, n).- cndarray
Right-hand side of the first equation, shape
(m, n).- dndarray
Upper triangular matrix of shape
(m, m).- endarray
Upper triangular matrix of shape
(n, n).- fndarray
Right-hand side of the second equation, shape
(m, n).- transstr, optional
'N'for the equations above,'T'for the transposed pair. Default is'N'.- ijobint, optional
0 solves only; 1 through 4 also estimate dif, by different methods. Default is 0.
- lworkint, optional
Workspace size. Only
ijobof 1 or 2 withtrans == 'N'needs the full2 * m * n; the rest get by with n. Default is2 * m * n.- overwrite_cint, optional
If nonzero, c may be overwritten in place. Default is 0.
- overwrite_fint, optional
If nonzero, f may be overwritten in place. Default is 0.
- Returns:
- rndarray
First component of the solution, overwriting c.
- lndarray
Second component of the solution, overwriting f.
- scalefloat
Scale factor, at most 1, chosen to avoid overflow in the solution.
- diffloat
Estimate of the separation of the two pencils; 0 unless ijob asked for it.
- infoint
0 on success; if negative, the
-info-th argument had an illegal value; 1 if the pencils have common or very close eigenvalues.