nag_dstebz (f08jjc) computes some (or all) of the eigenvalues of a real symmetric tridiagonal matrix, by bisection.
nag_dstebz (f08jjc) uses bisection to compute some or all of the eigenvalues of a real symmetric tridiagonal matrix .
It searches for zero or negligible off-diagonal elements of
to see if the matrix splits into block diagonal form:
It performs bisection on each of the blocks
and returns the block index of each computed eigenvalue, so that a subsequent call to
nag_dstein (f08jkc) to compute eigenvectors can also take advantage of the block structure.
- 1:
range – Nag_RangeTypeInput
-
On entry: indicates which eigenvalues are required.
- All the eigenvalues are required.
- All the eigenvalues in the half-open interval (vl,vu] are required.
- Eigenvalues with indices il to iu are required.
Constraint:
, or .
- 2:
rank – Nag_EigValRankTypeInput
-
On entry: indicates the order in which the eigenvalues and their block numbers are to be stored.
- The eigenvalues are to be grouped by split-off block and ordered from smallest to largest within each block.
- The eigenvalues for the entire matrix are to be ordered from smallest to largest.
Constraint:
or .
- 3:
n – IntegerInput
-
On entry:
, the order of the matrix .
Constraint:
.
- 4:
vl – doubleInput
- 5:
vu – doubleInput
-
On entry: if
, the lower and upper bounds, respectively, of the half-open interval (
vl,
vu] within which the required eigenvalues lie.
If
or
,
vl is not referenced.
Constraint:
if , .
- 6:
il – IntegerInput
- 7:
iu – IntegerInput
-
On entry: if
, the indices of the first and last eigenvalues, respectively, to be computed (assuming that the eigenvalues are in ascending order).
If
or
,
il is not referenced.
Constraint:
if , .
- 8:
abstol – doubleInput
-
On entry: the absolute tolerance to which each eigenvalue is required. An eigenvalue (or cluster) is considered to have converged if it lies in an interval of width . If , then the tolerance is taken as .
- 9:
d[] – const doubleInput
-
Note: the dimension,
dim, of the array
d
must be at least
.
On entry: the diagonal elements of the tridiagonal matrix .
- 10:
e[] – const doubleInput
-
Note: the dimension,
dim, of the array
e
must be at least
.
On entry: the off-diagonal elements of the tridiagonal matrix .
- 11:
m – Integer *Output
-
On exit: , the actual number of eigenvalues found.
- 12:
nsplit – Integer *Output
-
On exit: the number of diagonal blocks which constitute the tridiagonal matrix .
- 13:
w[n] – doubleOutput
On exit: the required eigenvalues of the tridiagonal matrix stored in to .
- 14:
iblock[n] – IntegerOutput
On exit: at each row/column
where
is zero or negligible,
is considered to split into a block diagonal matrix and
contains the block number of the eigenvalue stored in
, for
. Note that
for some
whenever
NE_CONVERGENCE (see
Section 6) and
or
.
- 15:
isplit[n] – IntegerOutput
On exit: the leading
nsplit elements contain the points at which
splits up into sub-matrices as follows. The first sub-matrix consists of rows/columns
to
, the second sub-matrix consists of rows/columns
to
,
, and the
nsplit(th) sub-matrix consists of rows/columns
to
(
).
- 16:
fail – NagError *Input/Output
-
The NAG error argument (see
Section 3.6 in the Essential Introduction).
- NE_ALLOC_FAIL
Dynamic memory allocation failed.
- NE_BAD_PARAM
On entry, argument had an illegal value.
- NE_CONVERGENCE
If or , the algorithm failed to compute some (or all) of the required eigenvalues to the required accuracy. More precisely, indicates that eigenvalue (stored in ) failed to converge.
If , the algorithm failed to compute some (or all) of the required eigenvalues. Try calling the function again with .
If , the algorithm failed to compute some (or all) of the required eigenvalues. Try calling the function again with . If or , the algorithm failed to compute some (or all) of the required eigenvalues to the required accuracy. More precisely, indicates that eigenvalue (stored in ) failed to converge.
No eigenvalues have been computed. The floating point arithmetic on the computer is not behaving as expected.
- NE_ENUM_INT_3
On entry, , , and .
Constraint: if , .
- NE_ENUM_REAL_2
On entry, , and .
Constraint: if , .
- NE_INT
On entry, .
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.
There is no complex analogue of this function.