nag_zptsv (f07jnc) computes the solution to a complex system of linear equations
where
is an
by
Hermitian positive definite tridiagonal matrix, and
and
are
by
matrices.
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
- NE_ALLOC_FAIL
Dynamic memory allocation failed.
- NE_BAD_PARAM
On entry, argument had an illegal value.
- NE_INT
On entry, .
Constraint: .
On entry, .
Constraint: .
On entry, .
Constraint: .
- NE_INT_2
On entry, and .
Constraint: .
On entry, and .
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.
- NE_MAT_NOT_POS_DEF
The leading minor of order is not positive definite, and the solution has not been computed. The factorization has not been completed unless .
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.
nag_zptsvx (f07jpc) is a comprehensive LAPACK driver that returns forward and backward error bounds and an estimate of the condition number. Alternatively,
nag_herm_posdef_tridiag_lin_solve (f04cgc) solves
and returns a forward error bound and condition estimate.
nag_herm_posdef_tridiag_lin_solve (f04cgc) calls nag_zptsv (f07jnc) to solve the equations.
The real analogue of this function is
nag_dptsv (f07jac).
This example solves the equations
where
is the Hermitian positive definite tridiagonal matrix
and