nag_real_sym_posdef_tridiag_lin_solve (f04bgc) computes the solution to a real system of linear equations , where is an by symmetric positive definite tridiagonal matrix and and are by matrices. An estimate of the condition number of and an error bound for the computed solution are also returned.
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. nag_real_sym_posdef_tridiag_lin_solve (f04bgc) uses the approximation
to estimate
errbnd. See Section 4.4 of
Anderson et al. (1999)
for further details.
See Section 15.3 of
Higham (2002) for further details on computing the condition number of tridiagonal matrices.
The complex analogue of nag_real_sym_posdef_tridiag_lin_solve (f04bgc) is
nag_herm_posdef_tridiag_lin_solve (f04cgc).
This example solves the equations
where
is the symmetric positive definite tridiagonal matrix