F07CAF (DGTSV) computes the solution to a real system of linear equations
where
is an
by
tridiagonal matrix and
and
are
by
matrices.
F07CAF (DGTSV) uses Gaussian elimination with partial pivoting and row interchanges to solve the equations . The matrix is factorized as , where is a permutation matrix, is unit lower triangular with at most one nonzero subdiagonal element per column, and is an upper triangular band matrix, with two superdiagonals.
Note that the equations
may be solved by interchanging the order of the arguments
DU and
DL.
Anderson E, Bai Z, Bischof C, Blackford S, Demmel J, Dongarra J J, Du Croz J J, Greenbaum A, Hammarling S, McKenney A and Sorensen D (1999)
LAPACK Users' Guide (3rd Edition) SIAM, Philadelphia
http://www.netlib.org/lapack/lug
The computed solution for a single right-hand side,
, satisfies an equation of the form
where
and
is the
machine precision. An approximate error bound for the computed solution is given by
where
, the condition number of
with respect to the solution of the linear equations. See Section 4.4 of
Anderson et al. (1999) for further details.
Alternatives to F07CAF (DGTSV), which return condition and error estimates are
F04BCF and
F07CBF (DGTSVX).
Not applicable.
The complex analogue of this routine is
F07CNF (ZGTSV).
This example solves the equations
where
is the tridiagonal matrix