F07CNF (ZGTSV) computes the solution to a complex system of linear equations
where
is an
by
tridiagonal matrix and
and
are
by
matrices.
F07CNF (ZGTSV) 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/lugThe 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 F07CNF (ZGTSV), which return condition and error estimates are
F04CCF and
F07CPF (ZGTSVX).
The real analogue of this routine is
F07CAF (DGTSV).
This example solves the equations
where
is the tridiagonal matrix
and