## Developer Reference

• 2020.2
• 07/15/2020
• Public Content
Contents

# ?stemr

Computes selected eigenvalues and eigenvectors of a real symmetric tridiagonal matrix.

## Syntax

Include Files
• mkl.fi
,
lapack.f90
Description
The routine computes selected eigenvalues and, optionally, eigenvectors of a real symmetric tridiagonal matrix
T
. Any such unreduced matrix has a well defined set of pairwise different real eigenvalues, the corresponding real eigenvectors are pairwise orthogonal.
The spectrum may be computed either completely or partially by specifying either an interval
(vl,vu]
or a range of indices
il:iu
for the desired eigenvalues.
Depending on the number of desired eigenvalues, these are computed either by bisection or the
dqds
algorithm. Numerically orthogonal eigenvectors are computed by the use of various suitable
L*D*L
T
factorizations near clusters of close eigenvalues (referred to as RRRs, Relatively Robust Representations). An informal sketch of the algorithm follows.
For each unreduced block (submatrix) of
T
,
1. Compute
T
- sigma*
I
=
L
*
D
*
L
T
, so that
L
and
D
define all the wanted eigenvalues to high relative accuracy. This means that small relative changes in the entries of
L
and
D
cause only small relative changes in the eigenvalues and eigenvectors. The standard (unfactored) representation of the tridiagonal matrix
T
does not have this property in general.
2. Compute the eigenvalues to suitable accuracy. If the eigenvectors are desired, the algorithm attains full accuracy of the computed eigenvalues only right before the corresponding vectors have to be computed, see steps c and d.
3. For each cluster of close eigenvalues, select a new shift close to the cluster, find a new factorization, and refine the shifted eigenvalues to suitable accuracy.
4. For each eigenvalue with a large enough relative separation compute the corresponding eigenvector by forming a rank revealing twisted factorization. Go back to step c for any clusters that remain.
Normal execution of
?stemr
may create NaNs and infinities and may abort due to a floating point exception in environments that do not handle NaNs and infinities in the IEEE standard default manner.
For more details, see: [