MatSetUpPreallocation
If the user has not set preallocation for this matrix then a default preallocation that is likely to be inefficient is used.
Synopsis
#include "petscmat.h"
PetscErrorCode MatSetUpPreallocation(Mat B)
Collective on Mat
Input Parameter
A -the matrix
Notes: See the Performance chapter of the PETSc users manual for how to preallocate matrices
Keywords
matrix, create
See Also
MatCreateSeqAIJ((), MatCreateMPIAIJ(),
MatCreateSeqDense(), MatCreateMPIDense(),
MatCreateSeqBAIJ(), MatCreateMPIBAIJ(),
MatCreateSeqSBAIJ(), MatCreateMPISBAIJ(),
MatConvert()
Level:advanced
Location:src/mat/utils/gcreate.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages