Synopsis

Input Parameters

B

- the matrix

i

- the indices into j for the start of each local row (starts with zero)

j

- the column indices for each local row (starts with zero)

v

- optional values in the matrix

Notes

The i, j, and a arrays ARE copied by this routine into the internal format used by PETSc;
thus you CANNOT change the matrix entries by changing the values of a[] after you have
called this routine. Use MatCreateMPIAIJWithSplitArrays() to avoid needing to copy the arrays.

The i and j indices are 0 based, and i indices are indices corresponding to the local j array.

The format which is used for the sparse matrix input, is equivalent to a
row-major ordering.. i.e for the following matrix, the input data expected is