The routine may be called by the names f08qtf, nagf_lapackeig_ztrexc or its LAPACK name ztrexc.
3Description
f08qtf 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 .
4References
Golub G H and Van Loan C F (1996) Matrix Computations (3rd Edition) Johns Hopkins University Press, Baltimore
5Arguments
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 upper triangular matrix , as returned by f08psf.
On entry: the first dimension of the array q as declared in the (sub)program from which f08qtf 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).
6Error Indicators and Warnings
If , argument had an illegal value. An explanatory message is output, and execution of the program is terminated.
7Accuracy
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.
8Parallelism and Performance
f08qtf 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.
9Further Comments
The total number of real floating-point operations is approximately if , and if , where .