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 Key#
-mat_type aij - sets the matrix type to
MATAIJ
during a call toMatSetFromOptions()
Developer Note#
Subclasses include MATAIJCUSPARSE
, MATAIJPERM
, MATAIJSELL
, MATAIJMKL
, MATAIJCRL
, MATAIJKOKKOS
,and also automatically switches over to use inodes when
enough exist.
See Also#
Matrices, Mat
, MATMPIAIJ
, MATSEQAIJ
, MatCreateAIJ()
, MatCreateSeqAIJ()
, MATSEQAIJ
, MATMPIAIJ
Level#
beginner
Location#
Examples#
src/snes/tutorials/ex35.c
src/tao/constrained/tutorials/tomographyADMM.c
src/tao/tutorials/ex4.c
src/tao/constrained/tutorials/maros.c
src/dm/tutorials/ex14.c
src/snes/tutorials/ex14.c
src/snes/tutorials/ex63.c
src/snes/tutorials/ex48.c
src/snes/tutorials/ex58.c
src/snes/tutorials/ex77.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages