On entry: if
,
or
,
JA must contain details of the sparsity pattern to be used for the Jacobian.
JA contains the row indices where nonzero elements occur, reading in column-wise order, and
IA contains the starting locations in
JA of the descriptions of columns
in that order, with
. Thus for each column index
, the values of the row index
in column
where a nonzero element may occur are given by
where
.
Thus the total number of nonzeros,
, must be
. For example, for the following matrix
where
represents nonzero elements (13 in all) the arrays
IA and
JA should be
JA is not used if
or
.