F08NUF (ZUNMHR) multiplies an arbitrary complex matrix
by the complex unitary matrix
which was determined by
F08NSF (ZGEHRD) when reducing a complex general matrix to Hessenberg form.
SUBROUTINE F08NUF ( |
SIDE, TRANS, M, N, ILO, IHI, A, LDA, TAU, C, LDC, WORK, LWORK, INFO) |
INTEGER |
M, N, ILO, IHI, LDA, LDC, LWORK, INFO |
COMPLEX (KIND=nag_wp) |
A(LDA,*), TAU(*), C(LDC,*), WORK(max(1,LWORK)) |
CHARACTER(1) |
SIDE, TRANS |
|
F08NUF (ZUNMHR) is intended to be used following a call to
F08NSF (ZGEHRD), which reduces a complex general matrix
to upper Hessenberg form
by a unitary similarity transformation:
.
F08NSF (ZGEHRD) represents the matrix
as a product of
elementary reflectors. Here
and
are values determined by
F08NVF (ZGEBAL) when balancing the matrix; if the matrix has not been balanced,
and
.
This routine may be used to form one of the matrix products
overwriting the result on
(which may be any complex rectangular matrix).
The computed result differs from the exact result by a matrix
such that
where
is the
machine precision.
The real analogue of this routine is
F08NGF (DORMHR).
This example computes all the eigenvalues of the matrix
, where
and those eigenvectors which correspond to eigenvalues
such that
. Here
is general and must first be reduced to upper Hessenberg form
by
F08NSF (ZGEHRD). The program then calls
F08PSF (ZHSEQR) to compute the eigenvalues, and
F08PXF (ZHSEIN) to compute the required eigenvectors of
by inverse iteration. Finally F08NUF (ZUNMHR) is called to transform the eigenvectors of
back to eigenvectors of the original matrix
.