f04axf calculates the approximate solution of a set of real sparse linear equations with a single right-hand side,
or
, where
has been factorized by
f01brf or
f01bsf.
To solve a system of real linear equations
or
, where
is a general sparse matrix,
must first be factorized by
f01brf or
f01bsf.
f04axf then computes
by block forward or backward substitution using simple forward and backward substitution within each diagonal block.
The method is fully described in
Duff (1977).
A more recent method is available through solver routine
f11mff and factorization routine
f11mef.
Duff I S (1977) MA28 – a set of Fortran subroutines for sparse unsymmetric linear equations AERE Report R8730 HMSO
If an error is detected in an input argument
f04axf will act as if a soft noisy exit has been requested (see
Section 3.4.4 in How to Use the NAG Library and its Documentation).
The accuracy of the computed solution depends on the conditioning of the original matrix. Since
f04axf is always used with either
f01brf or
f01bsf, you are recommended to set
on entry to these routines and to examine the value of
on exit (see
f01brf and
f01bsf). For a detailed error analysis see page 17 of
Duff (1977).
If storage for the original matrix is available then the error can be estimated by calculating the residual
and calling
f04axf again to find a correction
for
by solving
This example solves the set of linear equations
where
The nonzero elements of
and indexing information are read in by the program, as described in the document for
f01brf.