MATBAIJ#

MATBAIJ = “baij” - A matrix type to be used for block sparse matrices. This matrix type is identical to MATSEQBAIJ when constructed with a single process communicator, and MATMPIBAIJ otherwise.

Options Database Keys#

Notes#

Call MatSetOption(A, MAT_STRUCTURE_ONLY, PETSC_TRUE) before preallocation or MatSetUp() to store only the nonzero pattern. The assembled matrix has no numerical value array. Row and column indices supplied during insertion are retained, while numerical values are ignored. Such matrices can be used for structural operations, but not for numerical operations.

See Also#

Mat, MatCreateBAIJ(), MATSEQBAIJ, MATMPIBAIJ, MatMPIBAIJSetPreallocation(), MatMPIBAIJSetPreallocationCSR()

Level#

beginner

Location#

src/mat/impls/baij/mpi/mpibaij.c

Examples#

src/mat/tests/ex129.c
src/mat/tests/ex207.c
src/mat/tests/ex216.c
src/mat/tests/ex263.c
src/mat/tests/ex276.c
src/mat/tests/ex45.c
src/mat/tests/ex51.c
src/mat/tests/ex53.c
src/mat/tests/ex54.c
src/mat/tests/ex75.c


Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages