nag_zhbtrd (f08hsc) reduces a complex Hermitian band matrix to tridiagonal form.
nag_zhbtrd (f08hsc) reduces a Hermitian band matrix
to real symmetric tridiagonal form
by a unitary similarity transformation:
The function uses a vectorizable form of the reduction, due to
Kaufman (1984).
- NE_ALLOC_FAIL
Dynamic memory allocation failed.
- NE_BAD_PARAM
On entry, argument had an illegal value.
- NE_ENUM_INT_2
On entry, , and .
Constraint: if or , ;
if , .
- NE_INT
On entry, .
Constraint: .
On entry, .
Constraint: .
On entry, .
Constraint: .
On entry, .
Constraint: .
- NE_INT_2
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 tridiagonal matrix
is exactly similar to a nearby matrix
, where
is a modestly increasing function of
, and
is the
machine precision.
The computed matrix
differs from an exactly unitary matrix by a matrix
such that
where
is the
machine precision.
The real analogue of this function is
nag_dsbtrd (f08hec).
This example computes all the eigenvalues and eigenvectors of the matrix
, where
Here
is Hermitian and is treated as a band matrix. The program first calls nag_zhbtrd (f08hsc) to reduce
to tridiagonal form
, and to form the unitary matrix
; the results are then passed to
nag_zsteqr (f08jsc) which computes the eigenvalues and eigenvectors of
.