This example computes all the eigenvalues of
, where
using packed storage. Here
is symmetric positive definite and must first be factorized by
dpptrf. The program calls
dspgst to reduce the problem to the standard form
; then
dsptrd to reduce
to tridiagonal form, and
dsterf to compute the eigenvalues.