F08FTF (ZUNGTR) generates the complex unitary matrix
, which was determined by
F08FSF (ZHETRD) when reducing a Hermitian matrix to tridiagonal form.
F08FTF (ZUNGTR) is intended to be used after a call to
F08FSF (ZHETRD), which reduces a complex Hermitian matrix
to real symmetric tridiagonal form
by a unitary similarity transformation:
.
F08FSF (ZHETRD) 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
F08FFF (DORGTR).
This example computes all the eigenvalues and eigenvectors of the matrix
, where
Here
is Hermitian and must first be reduced to tridiagonal form by
F08FSF (ZHETRD). The program then calls F08FTF (ZUNGTR) to form
, and passes this matrix to
F08JSF (ZSTEQR) which computes the eigenvalues and eigenvectors of
.