F08JXF (ZSTEIN) computes the eigenvectors of a real symmetric tridiagonal matrix corresponding to specified eigenvalues, by inverse iteration, storing the eigenvectors in a complex array.
SUBROUTINE F08JXF ( |
N, D, E, M, W, IBLOCK, ISPLIT, Z, LDZ, WORK, IWORK, IFAILV, INFO) |
INTEGER |
N, M, IBLOCK(*), ISPLIT(*), LDZ, IWORK(N), IFAILV(M), INFO |
REAL (KIND=nag_wp) |
D(*), E(*), W(*), WORK(5*N) |
COMPLEX (KIND=nag_wp) |
Z(LDZ,*) |
|
F08JXF (ZSTEIN) computes the eigenvectors of a real symmetric tridiagonal matrix
corresponding to specified eigenvalues, by inverse iteration (see
Jessup and Ipsen (1992)). It is designed to be used in particular after the specified eigenvalues have been computed by
F08JJF (DSTEBZ) with
, but may also be used when the eigenvalues have been computed by other routines in
Chapters F02 or
F08.
The eigenvectors of
are real, but are stored by this routine in a complex array. If
has been formed by reduction of a full complex Hermitian matrix
to tridiagonal form, then eigenvectors of
may be transformed to (complex) eigenvectors of
by a call to
F08FUF (ZUNMTR) or
F08GUF (ZUPMTR).
F08JJF (DSTEBZ) determines whether the matrix
splits into block diagonal form:
and passes details of the block structure to this routine in the arrays
IBLOCK and
ISPLIT. This routine can then take advantage of the block structure by performing inverse iteration on each block
separately, which is more efficient than using the whole matrix.
- 1: N – INTEGERInput
On entry: , the order of the matrix .
Constraint:
.
- 2: D() – REAL (KIND=nag_wp) arrayInput
-
Note: the dimension of the array
D
must be at least
.
On entry: the diagonal elements of the tridiagonal matrix .
- 3: E() – REAL (KIND=nag_wp) arrayInput
-
Note: the dimension of the array
E
must be at least
.
On entry: the off-diagonal elements of the tridiagonal matrix .
- 4: M – INTEGERInput
On entry: , the number of eigenvectors to be returned.
Constraint:
.
- 5: W() – REAL (KIND=nag_wp) arrayInput
-
Note: the dimension of the array
W
must be at least
.
On entry: the eigenvalues of the tridiagonal matrix
stored in
to
, as returned by
F08JJF (DSTEBZ) with
. Eigenvalues associated with the first sub-matrix must be supplied first, in nondecreasing order; then those associated with the second sub-matrix, again in nondecreasing order; and so on.
Constraint:
if , , for .
- 6: IBLOCK() – INTEGER arrayInput
-
Note: the dimension of the array
IBLOCK
must be at least
.
On entry: the first
elements must contain the sub-matrix indices associated with the specified eigenvalues, as returned by
F08JJF (DSTEBZ) with
. If the eigenvalues were not computed by
F08JJF (DSTEBZ) with
, set
to
, for
.
Constraint:
, for .
- 7: ISPLIT() – INTEGER arrayInput
-
Note: the dimension of the array
ISPLIT
must be at least
.
On entry: the points at which
breaks up into sub-matrices, as returned by
F08JJF (DSTEBZ) with
. If the eigenvalues were not computed by
F08JJF (DSTEBZ) with
, set
to
N.
- 8: Z(LDZ,) – COMPLEX (KIND=nag_wp) arrayOutput
-
Note: the second dimension of the array
Z
must be at least
.
On exit: the
eigenvectors, stored as columns of
; the
th column corresponds to the
th specified eigenvalue, unless
(in which case see
Section 6).
- 9: LDZ – INTEGERInput
On entry: the first dimension of the array
Z as declared in the (sub)program from which F08JXF (ZSTEIN) is called.
Constraint:
.
- 10: WORK() – REAL (KIND=nag_wp) arrayWorkspace
- 11: IWORK(N) – INTEGER arrayWorkspace
- 12: IFAILV(M) – INTEGER arrayOutput
On exit: if
, the first
elements of
IFAILV contain the indices of any eigenvectors which have failed to converge. The rest of the first
M elements of
IFAILV are set to
.
- 13: INFO – INTEGEROutput
On exit:
unless the routine detects an error (see
Section 6).
Each computed eigenvector
is the exact eigenvector of a nearby matrix
, such that
where
is the
machine precision. Hence the residual is small:
However, a set of eigenvectors computed by this routine may not be orthogonal to so high a degree of accuracy as those computed by
F08JSF (ZSTEQR).
The real analogue of this routine is
F08JKF (DSTEIN).