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
.