f11jdf solves a system of equations
involving the preconditioning matrix
corresponding to symmetric successive-over-relaxation (SSOR) (see
Young (1971)) on a linear system
, where
is a sparse symmetric matrix stored in symmetric coordinate storage (SCS) format (see
Section 2.1.2 in the
F11 Chapter Introduction).
It is envisaged that a common use of
f11jdf will be to carry out the preconditioning step required in the application of
f11gef to sparse linear systems.
f11jdf is also used for this purpose by the Black Box routine
f11jef.
If on entry
or
, explanatory error messages are output on the current error message unit (as defined by
x04aaf).
The computed solution
is the exact solution of a perturbed system of equations
, where
is a modest linear function of
, and
is the
machine precision.
The time taken for a call to
f11jdf is proportional to
nnz.
It is expected that a common use of
f11jdf will be to carry out the preconditioning step required in the application of
f11gef to sparse symmetric linear systems. In this situation
f11jdf is likely to be called many times with the same matrix
. In the interests of both reliability and efficiency, you are recommended to set
for the first of such calls, and to set
for all subsequent calls.
This example solves a sparse symmetric linear system of equations
using the conjugate-gradient (CG) method with SSOR preconditioning.
The CG algorithm itself is implemented by the reverse communication routine
f11gef, which returns repeatedly to the calling program with various values of the argument
irevcm. This argument indicates the action to be taken by the calling program.
- If , a matrix-vector product is required. This is implemented by a call to f11xef.
- If , a solution of the preconditioning equation is required. This is achieved by a call to f11jdf.
- If , f11gef has completed its tasks. Either the iteration has terminated, or an error condition has arisen.
For further details see the routine document for
f11gef.