#include "petscmat.h" PetscErrorCode MatSeqAIJSetPreallocationCSR(Mat B,const PetscInt i[],const PetscInt j[],const PetscScalar v[])
B | - the matrix Many br | |
i | - the indices into j for the start of each row (starts with zero) Many br | |
j | - the column indices for each row (starts with zero) these must be sorted for each row Many br | |
v | - optional values in the matrix Many br |
Many br
The i,j,v values are COPIED with this routine; to avoid the copy use MatCreateSeqAIJWithArrays() Many br
Level:developer
Location:src/mat/impls/aij/seq/aij.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages