nag_dsbtrd (f08hec) reduces a real symmetric band matrix to tridiagonal form.
nag_dsbtrd (f08hec) reduces a symmetric band matrix
to symmetric tridiagonal form
by an orthogonal 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 orthogonal matrix by a matrix
such that
where
is the
machine precision.
The complex analogue of this function is
nag_zhbtrd (f08hsc).
This example computes all the eigenvalues and eigenvectors of the matrix
, where
Here
is symmetric and is treated as a band matrix. The program first calls nag_dsbtrd (f08hec) to reduce
to tridiagonal form
, and to form the orthogonal matrix
; the results are then passed to
nag_dsteqr (f08jec) which computes the eigenvalues and eigenvectors of
.