#include "petscmat.h" PetscErrorCode MatMPIAdjSetPreallocation(Mat B,PetscInt *i,PetscInt *j,PetscInt *values)Logically Collective on MPI_Comm
| A | - the matrix | |
| i | - the indices into j for the start of each row | |
| j | - the column indices for each row (sorted for each row). The indices in i and j start with zero (NOT with one). | |
| values | - [optional] edge weights |