Sylvester¶
- template<typename LMatType, typename RMatType, typename RHS>
internal::SylvesterEquation<LMatType, RMatType, RHS> solve_sylvester(const LMatType &A, const RMatType &B, const RHS &C)¶Solves the Sylvester’s equation: \( op(\mathbf{A}) \mathbf{X} \pm \mathbf{X} op(\mathbf{B}) = \alpha \mathbf{C} \), where
A
andB
are either upper triangular (or upper quasi-triangular in the canonical Schur form) matrices andop(A) = A or op(A) = A.T()
. The scale \( \alpha \geq 1\) is determined by the routine to avoid overflow inX
.
- Parameters:
A – [in] The matrix
A
or its transposeA.T()
B – [in] The matrix
B
or its transposeB.T()
or-B
or-B.T()
C – [in] The right side of the equation. Must be a Matrix.
- Returns:
An abstract object representing the solution of the Sylvester equation.