NAG Library Routine Document
F08JKF (DSTEIN)
1 Purpose
F08JKF (DSTEIN) computes the eigenvectors of a real symmetric tridiagonal matrix corresponding to specified eigenvalues, by inverse iteration.
2 Specification
SUBROUTINE F08JKF ( |
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(*), Z(LDZ,*), WORK(5*N) |
|
The routine may be called by its
LAPACK
name dstein.
3 Description
F08JKF (DSTEIN) 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.
If
has been formed by reduction of a full real symmetric matrix
to tridiagonal form, then eigenvectors of
may be transformed to eigenvectors of
by a call to
F08FGF (DORMTR) or
F08GGF (DOPMTR).
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.
4 References
Golub G H and Van Loan C F (1996) Matrix Computations (3rd Edition) Johns Hopkins University Press, Baltimore
Jessup E and Ipsen I C F (1992) Improving the accuracy of inverse iteration SIAM J. Sci. Statist. Comput. 13 550–572
5 Parameters
- 1: – INTEGERInput
-
On entry: , the order of the matrix .
Constraint:
.
- 2: – 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: – 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: – INTEGERInput
-
On entry: , the number of eigenvectors to be returned.
Constraint:
.
- 5: – 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: – 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: – 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: – REAL (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: – INTEGERInput
-
On entry: the first dimension of the array
Z as declared in the (sub)program from which F08JKF (DSTEIN) is called.
Constraint:
.
- 10: – REAL (KIND=nag_wp) arrayWorkspace
-
- 11: – INTEGER arrayWorkspace
-
- 12: – 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: – 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.
-
If
, then
eigenvectors (as indicated by the parameter
IFAILV above) each failed to converge in five iterations. The current iterate after five iterations is stored in the corresponding column of
Z.
7 Accuracy
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
F08JEF (DSTEQR).
8 Parallelism and Performance
F08JKF (DSTEIN) is threaded by NAG for parallel execution in multithreaded implementations of the NAG Library.
F08JKF (DSTEIN) 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 complex analogue of this routine is
F08JXF (ZSTEIN).
10 Example
See
Section 10 in F08FGF (DORMTR).