F04AFF calculates the accurate solution of a set of real symmetric positive definite linear equations with multiple right-hand sides,
, with iterative refinement, where
has been factorized by
F03AEF.
SUBROUTINE F04AFF ( |
N, IR, A, LDA, P, B, LDB, EPS, X, LDX, BB, LDBB, K, IFAIL) |
INTEGER |
N, IR, LDA, LDB, LDX, LDBB, K, IFAIL |
REAL (KIND=nag_wp) |
A(LDA,N), P(N), B(LDB,IR), EPS, X(LDX,IR), BB(LDBB,IR) |
|
To solve a set of real linear equations
where
is symmetric positive definite, F04AFF must be preceded by a call to
F03AEF which computes a Cholesky factorization of
as
, where
is lower triangular. An approximation to
is then found by forward and backward substitution. The residual matrix
is then calculated using
additional precision, and a correction
to
is found by solving
.
is replaced by
, and this iterative refinement of the solution is repeated until full machine accuracy has been obtained.
If on entry
or
, explanatory error messages are output on the current error message unit (as defined by
X04AAF).
The computed solutions should be correct to full machine accuracy. For a detailed error analysis see page 39 of
Wilkinson and Reinsch (1971).
This example solves the set of linear equations
where