nag_dpptrs (f07gec) solves a real symmetric positive definite system of linear equations with multiple right-hand sides,
where
has been factorized by
nag_dpptrf (f07gdc), using packed storage.
nag_dpptrs (f07gec) is used to solve a real symmetric positive definite system of linear equations
, the function must be preceded by a call to
nag_dpptrf (f07gdc) which computes the Cholesky factorization of
, using packed storage. The solution
is computed by forward and backward substitution.
For each right-hand side vector
, the computed solution
is the exact solution of a perturbed system of equations
, where
- if , ;
- if , ,
is a modest linear function of
, and
is the
machine precision.
If
is the true solution, then the computed solution
satisfies a forward error bound of the form
where
.
Forward and backward error bounds can be computed by calling
nag_dpprfs (f07ghc), and an estimate for
(
) can be obtained by calling
nag_dppcon (f07ggc).
This function may be followed by a call to
nag_dpprfs (f07ghc) to refine the solution and return an error estimate.
The complex analogue of this function is
nag_zpptrs (f07gsc).
This example solves the system of equations
, where
Here
is symmetric positive definite, stored in packed form, and must first be factorized by
nag_dpptrf (f07gdc).