Skip to content

sylvester

builtin · libnexusinterp/corefcn/sylvester-proprietary.cc

: X = sylvester (A, B, C)

Solve the Sylvester equation A*X + X*B = C.

A must be square of size m, B square of size n and C m-by-n; the solution has the size of C. The equation is reduced to triangular form with Schur decompositions of A and B and solved by back substitution. If any input is complex the result is complex; single precision inputs give single precision output.

The problem is singular when an eigenvalue of A and the negative of an eigenvalue of B coincide; the result is then not meaningful.