HP MLIB User's Guide Vol. 2 7th Ed.

886 HP MLIB User’s Guide
Sample program
Figure 13-5 Paths of Control (continued)
Sample program
As illustrated in Figure 13-4 and Figure 13-5, there are many possible paths of
control through this sparse matrix package. The following sample programs are
provided to show one possible path through the package. It is intended to
demonstrate that the package is not as difficult to use as Figure 13-4 and
Figure 13-5 may imply.
In these examples, the row and column indices and the corresponding value for
each nonzero entry of the matrix are assumed to be stored in the three arrays
IROW, JCOL, and MXVALU. The right-hand-side vector is stored in the array RHS.
These examples demonstrate the use of the subroutines for solving sparse
systems of linear equations when subroutine DSLEFS cannot be used. The
following code assumes that there are NNZERO nonzero entries in the matrix,
which has NEQNS rows and columns. Values of NNZERO and NEQNS are set prior
to this code segment.
DSLEDA
Utilities:
DSLEFF
DSLEPS
DSLEOC
DSLEOP
DSLERD