This example computes the two smallest eigenvalues, and the associated eigenvectors, of the matrix
, where
using packed storage. Here
is symmetric and must first be reduced to tridiagonal form
by
dsptrd. The program then calls
dstebz to compute the requested eigenvalues and
dstein to compute the associated eigenvectors of
. Finally
dopmtr is called to transform the eigenvectors to those of
.