#include "petscmat.h" PetscErrorCode MatCheckCompressedRow(Mat A,Mat_CompressedRow *compressedrow,PetscInt *ai,PetscInt mbs,PetscReal ratio)Collective
|A||- the matrix|
|compressedrow||- pointer to the struct Mat_CompressedRow|
|ai||- row pointer used by seqaij and seqbaij|
|mbs||- number of (block) rows represented by ai|
|ratio||- ratio of (num of zero rows)/m, used to determine if the compressed row format should be used|
Notes: By default PETSc will not check for compressed rows on sequential matrices. Call MatSetOption(Mat,MAT_CHECK_COMPRESSED_ROW,PETSC_TRUE); before MatAssemblyBegin() to have it check.
Developer Note: The reason this takes the compressedrow, ai and mbs arguments is because it is called by both the SeqAIJ and SEQBAIJ matrices and the values are not therefore obtained by directly taking the values from the matrix object.
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages