nag_zunmhr (f08nuc) multiplies an arbitrary complex matrix
by the complex unitary matrix
which was determined by
nag_zgehrd (f08nsc) when reducing a complex general matrix to Hessenberg form.
nag_zunmhr (f08nuc) is intended to be used following a call to
nag_zgehrd (f08nsc), which reduces a complex general matrix
to upper Hessenberg form
by a unitary similarity transformation:
.
nag_zgehrd (f08nsc) represents the matrix
as a product of
elementary reflectors. Here
and
are values determined by
nag_zgebal (f08nvc) when balancing the matrix; if the matrix has not been balanced,
and
.
This function may be used to form one of the matrix products
overwriting the result on
(which may be any complex rectangular matrix).
- NE_ALLOC_FAIL
-
Dynamic memory allocation failed.
- NE_BAD_PARAM
-
On entry, argument had an illegal value.
- NE_ENUM_INT_3
-
On entry, , , and .
Constraint: if , ;
if , .
On entry, , , and .
Constraint: if ,
;
if ,
.
- NE_ENUM_INT_4
-
On entry, , , , and .
Constraint: if and , ;
if and , and ;
if and , ;
if and , and .
- NE_INT
-
On entry, .
Constraint: .
On entry, .
Constraint: .
On entry, .
Constraint: .
On entry, .
Constraint: .
- NE_INT_2
-
On entry, and .
Constraint: .
On entry, and .
Constraint: .
- NE_INTERNAL_ERROR
-
An internal error has occurred in this function. Check the function call and any array sizes. If the call is correct then please contact
NAG for assistance.
The computed result differs from the exact result by a matrix
such that
where
is the
machine precision.
nag_zunmhr (f08nuc) is threaded by NAG for parallel execution in multithreaded implementations of the NAG Library.
nag_zunmhr (f08nuc) makes calls to BLAS and/or LAPACK routines, which may be threaded within the vendor library used by this implementation. Consult the documentation for the vendor library for further information.
Please consult the
Users' Note for your implementation for any additional implementation-specific information.
The real analogue of this function is
nag_dormhr (f08ngc).
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
nag_zgehrd (f08nsc). The program then calls
nag_zhseqr (f08psc) to compute the eigenvalues, and
nag_zhsein (f08pxc) to compute the required eigenvectors of
by inverse iteration. Finally nag_zunmhr (f08nuc) is called to transform the eigenvectors of
back to eigenvectors of the original matrix
.