MatMPIAdjSetPreallocation#
Sets the array used for storing the matrix elements
Synopsis#
#include "petscmat.h"
PetscErrorCode MatMPIAdjSetPreallocation(Mat B, PetscInt *i, PetscInt *j, PetscInt *values)
Logically Collective
Input Parameters#
B - the matrix
i - the indices into
jfor the start of each rowj - the column indices for each row (sorted for each row). The indices in
iandjstart with zero (NOT with one).values - [use
NULLif not provided] edge weights
See Also#
Matrices, Mat, MatCreate(), MatCreateMPIAdj(), MatSetValues(), MATMPIADJ
Level#
intermediate
Location#
Implementations#
MatMPIAdjSetPreallocation_MPIAdj() in src/mat/impls/adj/mpi/mpiadj.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages