nag_zunmtr (f08fuc) multiplies an arbitrary complex matrix
by the complex unitary matrix
which was determined by
nag_zhetrd (f08fsc) when reducing a complex Hermitian matrix to tridiagonal form.
nag_zunmtr (f08fuc) is intended to be used after a call to
nag_zhetrd (f08fsc), which reduces a complex Hermitian matrix
to real symmetric tridiagonal form
by a unitary similarity transformation:
.
nag_zhetrd (f08fsc) represents the unitary matrix
as a product of elementary reflectors.
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 , .
- 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.
The real analogue of this function is
nag_dormtr (f08fgc).
This example computes the two smallest eigenvalues, and the associated eigenvectors, of the matrix
, where
Here
is Hermitian and must first be reduced to tridiagonal form
by
nag_zhetrd (f08fsc). The program then calls
nag_dstebz (f08jjc) to compute the requested eigenvalues and
nag_zstein (f08jxc) to compute the associated eigenvectors of
. Finally nag_zunmtr (f08fuc) is called to transform the eigenvectors to those of
.