petsc-3.13.6 2020-09-29
Report Typos and Errors

MATAIJ

MATAIJ = "aij" - A matrix type to be used for sparse matrices. This matrix type is identical to MATSEQAIJ when constructed with a single process communicator, and MATMPIAIJ otherwise. As a result, for single process communicators, MatSeqAIJSetPreallocation is supported, and similarly MatMPIAIJSetPreallocation() is supported for communicators controlling multiple processes. It is recommended that you call both of the above preallocation routines for simplicity.

Options Database Keys

-mat_type aij -sets the matrix type to "aij" during a call to MatSetFromOptions()

Developer Notes

Subclasses include MATAIJCUSP, MATAIJCUSPARSE, MATAIJPERM, MATAIJSELL, MATAIJMKL, MATAIJCRL, and also automatically switches over to use inodes when enough exist.

See Also

MatCreateAIJ(), MatCreateSeqAIJ(), MATSEQAIJ, MATMPIAIJ

Level

beginner

Location

src/mat/impls/aij/mpi/mpiaij.c

Examples

src/mat/tutorials/ex8.c.html
src/ksp/ksp/tutorials/ex34.c.html
src/ksp/ksp/tutorials/ex42.c.html
src/ksp/ksp/tutorials/ex43.c.html
src/ksp/ksp/tutorials/ex49.c.html
src/ksp/ksp/tutorials/ex55.c.html
src/ksp/ksp/tutorials/ex56.c.html
src/ksp/ksp/tutorials/ex70.c.html
src/ksp/ksp/tutorials/ex71.c.html
src/ksp/ksp/tutorials/ex73.c.html
src/ksp/ksp/tutorials/ex74.c.html

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