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