F07CGF (DGTCON) estimates the reciprocal condition number of a real
by
tridiagonal matrix
, using the
factorization returned by
F07CDF (DGTTRF).
F07CGF (DGTCON) should be preceded by a call to
F07CDF (DGTTRF), which uses Gaussian elimination with partial pivoting and row interchanges to factorize the matrix
as
where
is a permutation matrix,
is unit lower triangular with at most one nonzero subdiagonal element in each column, and
is an upper triangular band matrix, with two superdiagonals. F07CGF (DGTCON) then utilizes the factorization to estimate either
or
, from which the estimate of the reciprocal of the condition number of
,
is computed as either
or
is returned, rather than
, since when
is singular
is infinite.
- 1: NORM – CHARACTER(1)Input
On entry: specifies the norm to be used to estimate
.
- or
- Estimate .
- Estimate .
Constraint:
, or .
- 2: N – INTEGERInput
On entry: , the order of the matrix .
Constraint:
.
- 3: DL() – REAL (KIND=nag_wp) arrayInput
-
Note: the dimension of the array
DL
must be at least
.
On entry: must contain the multipliers that define the matrix of the factorization of .
- 4: D() – REAL (KIND=nag_wp) arrayInput
-
Note: the dimension of the array
D
must be at least
.
On entry: must contain the diagonal elements of the upper triangular matrix from the factorization of .
- 5: DU() – REAL (KIND=nag_wp) arrayInput
-
Note: the dimension of the array
DU
must be at least
.
On entry: must contain the elements of the first superdiagonal of .
- 6: DU2() – REAL (KIND=nag_wp) arrayInput
-
Note: the dimension of the array
DU2
must be at least
.
On entry: must contain the elements of the second superdiagonal of .
- 7: IPIV() – INTEGER arrayInput
-
Note: the dimension of the array
IPIV
must be at least
.
On entry: must contain the pivot indices that define the permutation matrix . At the th step, row of the matrix was interchanged with row , and must always be either or , indicating that a row interchange was not performed.
- 8: ANORM – REAL (KIND=nag_wp)Input
On entry: if
or
, the
-norm of the
original matrix
.
If , the -norm of the original matrix .
ANORM may be computed by calling
F06RNF with the same value for the parameter
NORM.
ANORM must be computed either
before calling
F07CDF (DGTTRF) or else from a
copy of the original matrix
(see
Section 9).
Constraint:
.
- 9: RCOND – REAL (KIND=nag_wp)Output
On exit: contains an estimate of the reciprocal condition number.
- 10: WORK() – REAL (KIND=nag_wp) arrayWorkspace
- 11: IWORK(N) – INTEGER arrayWorkspace
- 12: INFO – INTEGEROutput
On exit:
unless the routine detects an error (see
Section 6).
In practice the condition number estimator is very reliable, but it can underestimate the true condition number; see Section 15.3 of
Higham (2002)
for further details.
The condition number estimation typically requires between four and five solves and never more than eleven solves, following the factorization. The total number of floating point operations required to perform a solve is proportional to .
The complex analogue of this routine is
F07CUF (ZGTCON).
This example estimates the condition number in the
-norm of the tridiagonal matrix
given by