NAG Library Routine Document
f08qtf
(ztrexc)
1
Purpose
f08qtf (ztrexc) reorders the Schur factorization of a complex general matrix.
2
Specification
Fortran Interface
Integer, Intent (In) | :: |
n,
ldt,
ldq,
ifst,
ilst | Integer, Intent (Out) | :: |
info | Complex (Kind=nag_wp), Intent (Inout) | :: |
t(ldt,*),
q(ldq,*) | Character (1), Intent (In) | :: |
compq |
|
C Header Interface
#include nagmk26.h
void |
f08qtf_ (
const char *compq,
const Integer *n,
Complex t[],
const Integer *ldt,
Complex q[],
const Integer *ldq,
const Integer *ifst,
const Integer *ilst,
Integer *info,
const Charlen length_compq) |
|
The routine may be called by its
LAPACK
name ztrexc.
3
Description
f08qtf (ztrexc) reorders the Schur factorization of a complex general matrix
, so that the diagonal element of
with row index
ifst is moved to row
ilst.
The reordered Schur form is computed by a unitary similarity transformation: . Optionally the updated matrix of Schur vectors is computed as , giving .
4
References
Golub G H and Van Loan C F (1996) Matrix Computations (3rd Edition) Johns Hopkins University Press, Baltimore
5
Arguments
- 1: – Character(1)Input
-
On entry: indicates whether the matrix
of Schur vectors is to be updated.
- The matrix of Schur vectors is updated.
- No Schur vectors are updated.
Constraint:
or .
- 2: – IntegerInput
-
On entry: , the order of the matrix .
Constraint:
.
- 3: – Complex (Kind=nag_wp) arrayInput/Output
-
Note: the second dimension of the array
t
must be at least
.
On entry: the
by
upper triangular matrix
, as returned by
f08psf (zhseqr).
On exit:
t is overwritten by the updated matrix
.
- 4: – IntegerInput
-
On entry: the first dimension of the array
t as declared in the (sub)program from which
f08qtf (ztrexc) is called.
Constraint:
.
- 5: – Complex (Kind=nag_wp) arrayInput/Output
-
Note: the second dimension of the array
q
must be at least
if
and at least
if
.
On entry: if
,
q must contain the
by
unitary matrix
of Schur vectors.
On exit: if
,
q contains the updated matrix of Schur vectors.
If
,
q is not referenced.
- 6: – IntegerInput
-
On entry: the first dimension of the array
q as declared in the (sub)program from which
f08qtf (ztrexc) is called.
Constraints:
- if , ;
- if , .
- 7: – IntegerInput
- 8: – IntegerInput
-
On entry:
ifst and
ilst must specify the reordering of the diagonal elements of
. The element with row index
ifst is moved to row
ilst by a sequence of exchanges between adjacent elements.
Constraint:
and .
- 9: – IntegerOutput
On exit:
unless the routine detects an error (see
Section 6).
6
Error Indicators and Warnings
-
If , argument had an illegal value. An explanatory message is output, and execution of the program is terminated.
7
Accuracy
The computed matrix
is exactly similar to a matrix
, where
and
is the
machine precision.
The values of the eigenvalues are never changed by the reordering.
8
Parallelism and Performance
f08qtf (ztrexc) makes calls to BLAS and/or LAPACK routines, which may be threaded within the vendor library used by this implementation. Consult the documentation for the vendor library for further information.
Please consult the
X06 Chapter Introduction for information on how to control and interrogate the OpenMP environment used within this routine. Please also consult the
Users' Note for your implementation for any additional implementation-specific information.
The total number of real floating-point operations is approximately if , and if , where .
The real analogue of this routine is
f08qff (dtrexc).
10
Example
This example reorders the Schur factorization of the matrix
so that element
is moved to
, where
10.1
Program Text
Program Text (f08qtfe.f90)
10.2
Program Data
Program Data (f08qtfe.d)
10.3
Program Results
Program Results (f08qtfe.r)