f08ytf reorders the generalized complex
matrix pair
in generalized Schur form, so that the diagonal element of
with row index
is moved to row
, using a unitary equivalence transformation. That is,
and
are factorized as
where
are also in generalized Schur form.
The pair
are in generalized Schur form if
and
are upper triangular as returned, for example, by
f08xqf, or
f08xsf with
.
If
and
are the result of a generalized Schur factorization of a matrix pair
then, optionally, the matrices
and
can be updated as
and
.
Anderson E, Bai Z, Bischof C, Blackford S, Demmel J, Dongarra J J, Du Croz J J, Greenbaum A, Hammarling S, McKenney A and Sorensen D (1999)
LAPACK Users' Guide (3rd Edition) SIAM, Philadelphia
https://www.netlib.org/lapack/lug
-
1:
– Logical
Input
-
On entry: if
, update the left transformation matrix
.
If , do not update .
-
2:
– Logical
Input
-
On entry: if
, update the right transformation matrix
.
If , do not update .
-
3:
– Integer
Input
-
On entry: , the order of the matrices and .
Constraint:
.
-
4:
– Complex (Kind=nag_wp) array
Input/Output
-
Note: the second dimension of the array
a
must be at least
.
On entry: the matrix in the pair .
On exit: the updated matrix .
-
5:
– Integer
Input
-
On entry: the first dimension of the array
a as declared in the (sub)program from which
f08ytf is called.
Constraint:
.
-
6:
– Complex (Kind=nag_wp) array
Input/Output
-
Note: the second dimension of the array
b
must be at least
.
On entry: the matrix , in the pair .
On exit: the updated matrix
-
7:
– Integer
Input
-
On entry: the first dimension of the array
b as declared in the (sub)program from which
f08ytf is called.
Constraint:
.
-
8:
– Complex (Kind=nag_wp) array
Input/Output
-
Note: the second dimension of the array
q
must be at least
if
, and at least
otherwise.
On entry: if , the unitary matrix .
On exit: if
, the updated matrix
.
If
,
q is not referenced.
-
9:
– Integer
Input
-
On entry: the first dimension of the array
q as declared in the (sub)program from which
f08ytf is called.
Constraints:
- if , ;
- otherwise .
-
10:
– Complex (Kind=nag_wp) array
Input/Output
-
Note: the second dimension of the array
z
must be at least
if
, and at least
otherwise.
On entry: if , the unitary matrix .
On exit: if
, the updated matrix
.
If
,
z is not referenced.
-
11:
– Integer
Input
-
On entry: the first dimension of the array
z as declared in the (sub)program from which
f08ytf is called.
Constraints:
- if , ;
- otherwise .
-
12:
– Integer
Input
-
13:
– Integer
Input/Output
-
On entry: the indices
and
that specify the reordering of the diagonal elements of
. The element with row index
ifst is moved to row
ilst, by a sequence of swapping between adjacent diagonal elements.
On exit:
ilst points to the row in its final position.
Constraint:
and .
-
14:
– Integer
Output
-
On exit:
unless the routine detects an error (see
Section 6).
The computed generalized Schur form is nearly the exact generalized Schur form for nearby matrices
and
, where
and
is the
machine precision. See Section 4.11 of
Anderson et al. (1999) for further details of error bounds for the generalized nonsymmetric eigenproblem.
Background information to multithreading can be found in the
Multithreading documentation.
The real analogue of this routine is
f08yff.
This example exchanges rows 4 and 1 of the matrix pair
, where
and