naginterfaces.library.lapackeig.ztrsyl¶
- naginterfaces.library.lapackeig.ztrsyl(trana, tranb, isgn, a, b, c)[source]¶
ztrsyl
solves the complex triangular Sylvester matrix equation.For full information please refer to the NAG Library document for f08qv
https://support.nag.com/numeric/nl/nagdoc_30.3/flhtml/f08/f08qvf.html
- Parameters
- tranastr, length 1
Specifies the option .
.
.
- tranbstr, length 1
Specifies the option .
.
.
- isgnint
Indicates the form of the Sylvester equation.
The equation is of the form .
The equation is of the form .
- acomplex, array-like, shape
The upper triangular matrix .
- bcomplex, array-like, shape
The upper triangular matrix .
- ccomplex, array-like, shape
The right-hand side matrix .
- Returns
- ccomplex, ndarray, shape
is overwritten by the solution matrix .
- scalfloat
The value of the scale factor .
- Raises
- NagValueError
- (errno )
On entry, error in parameter .
Constraint: or .
- (errno )
On entry, error in parameter .
Constraint: or .
- (errno )
On entry, error in parameter .
Constraint: or .
- (errno )
On entry, error in parameter .
Constraint: .
- (errno )
On entry, error in parameter .
Constraint: .
- Warns
- NagAlgorithmicWarning
- (errno )
and have common or close eigenvalues, perturbed values of which were used to solve the equation.
- Notes
ztrsyl
solves the complex Sylvester matrix equationwhere or , and the matrices and are upper triangular; is a scale factor () determined by the function to avoid overflow in ; is and is while the right-hand side matrix and the solution matrix are both . The matrix is obtained by a straightforward process of back-substitution (see Golub and Van Loan (1996)).
Note that the equation has a unique solution if and only if , where and are the eigenvalues of and respectively and the sign ( or ) is the same as that used in the equation to be solved.
- References
Golub, G H and Van Loan, C F, 1996, Matrix Computations, (3rd Edition), Johns Hopkins University Press, Baltimore
Higham, N J, 1992, Perturbation theory and backward error for , Numerical Analysis Report, University of Manchester