bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / linalg / _flapack / dtgsyl
lapack_function
scipy.linalg._flapack:dtgsyl
source: build-install/usr/lib/python3.14/site-packages/scipy/linalg/_flapack.cpython-314-x86_64-linux-gnu.so
Summary
Solve the generalized Sylvester equations (LAPACK dtgsyl).
Extended Summary
Solves a @ r - l @ b == scale * c together with d @ r - l @ e == scale * f for the pair (r, l), which overwrites (c, f). The .pyf declares only the real flavors.
Parameters
a: ndarrayUpper quasi-triangular matrix of shape
(m, m).b: ndarrayUpper quasi-triangular matrix of shape
(n, n).c: ndarrayRight-hand side of the first equation, shape
(m, n).d: ndarrayUpper triangular matrix of shape
(m, m).e: ndarrayUpper triangular matrix of shape
(n, n).f: ndarrayRight-hand side of the second equation, shape
(m, n).trans: str, optional'N'for the equations above,'T'for the transposed pair. Default is'N'.ijob: int, optional0 solves only; 1 through 4 also estimate dif, by different methods. Default is 0.
lwork: int, optionalWorkspace size. Only
ijobof 1 or 2 withtrans == 'N'needs the full2 * m * n; the rest get by withn. Default is2 * m * n.overwrite_c: int, optionalIf nonzero,
cmay be overwritten in place. Default is 0.overwrite_f: int, optionalIf nonzero, f may be overwritten in place. Default is 0.
Returns
r: ndarrayFirst component of the solution, overwriting c.
l: ndarraySecond component of the solution, overwriting f.
scale: floatScale factor, at most 1, chosen to avoid overflow in the solution.
dif: floatEstimate of the separation of the two pencils; 0 unless ijob asked for it.
info: int0 on success; if negative, the
-info-th argument had an illegal value; 1 if the pencils have common or very close eigenvalues.
Aliases
scipy.linalg._flapack.dtgsyl