F08GTF (ZUPGTR) generates the complex unitary matrix
, which was determined by
F08GSF (ZHPTRD) when reducing a Hermitian matrix to tridiagonal form.
F08GTF (ZUPGTR) is intended to be used after a call to
F08GSF (ZHPTRD), which reduces a complex Hermitian matrix
to real symmetric tridiagonal form
by a unitary similarity transformation:
.
F08GSF (ZHPTRD) represents the unitary matrix
as a product of
elementary reflectors.
The computed matrix
differs from an exactly unitary matrix by a matrix
such that
where
is the
machine precision.
The real analogue of this routine is
F08GFF (DOPGTR).
This example computes all the eigenvalues and eigenvectors of the matrix
, where
using packed storage. Here
is Hermitian and must first be reduced to tridiagonal form by
F08GSF (ZHPTRD). The program then calls F08GTF (ZUPGTR) to form
, and passes this matrix to
F08JSF (ZSTEQR) which computes the eigenvalues and eigenvectors of
.