#include "petscmat.h" PetscErrorCode MatSeqSBAIJSetPreallocationCSR(Mat B,PetscInt bs,const PetscInt i[],const PetscInt j[], const PetscScalar v[])
B | - the matrix | |
bs | - size of block, the blocks are ALWAYS square. | |
i | - the indices into j for the start of each local row (starts with zero) | |
j | - the column indices for each local row (starts with zero) these must be sorted for each row | |
v | - optional values in the matrix |