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

880 HP MLIB User’s Guide
What you need to know to use these subprograms
Figure 13-2 Column Pointer, Row Index Sparse Matrix Representation for
the Full Matrix
Figure 13-3 Column Pointer, Row Index Sparse Matrix Representation for
the Lower Triangle of the Matrix
There are three ways of communicating the coefficient matrix to the package.
One is a general form, which allows the user to store the matrix outside the
package in whatever form is most convenient. The other two ways require that
the user store the entire matrix in a form similar to the internal format or at
least with all entries in each column contiguous in memory. Any of these three
can be used. However, the general form carries additional overhead in
computer time.
colstr =
14711141819
33 14 44 54 25 35 45 55 66
3 14523456
22
2
32
3
52
5
13
1
23
2
53
5
11
1
31
3
41
4rowind =
mxvalu =
-
colstr
=
rowind
=
mxvalu
=
1 4 7 9 11 12 13
34235354556
11 31 41 22 32 52 33 53 44 54 55 66
1
_