bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / linalg / _flapack / strsyl
lapack_function
scipy.linalg._flapack:strsyl
source: build-install/usr/lib/python3.14/site-packages/scipy/linalg/_flapack.cpython-314-x86_64-linux-gnu.so
Signature
def strsyl(a, b, c, trana = N, tranb = N, isgn = 1, overwrite_c = 0)Summary
Solve the Sylvester equation op(a) @ x + isgn * x @ op(b) = scale * c (LAPACK strsyl).
Parameters
a: ndarrayUpper (quasi-)triangular matrix of shape
(m, m), in Schur canonical form.b: ndarrayUpper (quasi-)triangular matrix of shape
(n, n), in Schur canonical form.c: ndarrayRight-hand side of shape
(m, n).trana: str, optional'N','T'or'C'forop(a). Default is'N'.tranb: str, optional'N','T'or'C'forop(b). Default is'N'.isgn: int, optionalSign of the
x @ op(b)term: 1 or -1. Default is 1.overwrite_c: int, optionalIf nonzero,
cmay be overwritten in place. Default is 0.
Returns
x: ndarrayThe solution, overwriting
c.scale: floatScale factor, at most 1, chosen to avoid overflow in the solution.
info: int0 on success; if negative, the
-info-th argument had an illegal value; 1 ifaandbhave common or very close eigenvalues, in which case perturbed values were used.
Aliases
scipy.linalg._flapack.strsyl