#include "petscmat.h" PetscErrorCode MatBlockMatSetPreallocation(Mat B,PetscInt bs,PetscInt nz,const PetscInt nnz[])Collective on MPI_Comm Many br
B | - The matrix Many br | |
bs | - size of each block in matrix Many br | |
nz | - number of nonzeros per block row (same for all rows) Many br | |
nnz | - array containing the number of nonzeros in the various block rows Many br(possibly different for each row) or NULL Many br |
Specify the preallocated storage with either nz or nnz (not both). Many brSet nz=PETSC_DEFAULT and nnz=NULL for PETSc to control dynamic memory Many brallocation. For large problems you MUST preallocate memory or you Many brwill get TERRIBLE performance, see the users' manual chapter on matrices. Many br
Many br
Level:intermediate
Location:src/mat/impls/blockmat/seq/blockmat.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages