Qu

sylvester

Builtin index · Core maths

sylvester(A, B, C)

Input: A, B, C · Output: no output

What it is

Solves the Sylvester equation A X + X B = C for X, with A n×n, B m×m and C n×m (real matrices; X is n×m). Bartels-Stewart on the complex Schur forms of A and B, O(n³ + m³ + nm(n+m)), dense with no size limit other than memory. The solution is unique exactly when no eigenvalue of A is the negative of an eigenvalue of B. Errors: non-square A or B, a C of the wrong shape (the message gives the expected n×m), a non-finite entry, complex input, and A and -B sharing an eigenvalue to working precision (no unique solution).

Overloads

One call shape — this function is not overloaded.

CodeInputOutputDescription
sylvester(A, B, C)
A —not documented yet
B —not documented yet
C —not documented yet
not documented yet—

Examples

No documentation example calls this form yet. The Core maths chapter is where one belongs.