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 “aij” during a call to MatSetFromOptions()

Note#

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

See Also#

Matrices, Mat, MatCreateAIJ(), MatCreateSeqAIJ(), MATSEQAIJ, MATMPIAIJ, MATSELL, MATSEQSELL, MATMPISELL

Level#

beginner

Location#

src/mat/impls/aij/seq/aij.c

Examples#

src/dm/tutorials/ex14.c
src/ksp/ksp/tutorials/ex15f.F90
src/ksp/ksp/tutorials/ex34.c
src/ksp/ksp/tutorials/ex4.c
src/ksp/ksp/tutorials/ex42.c
src/ksp/ksp/tutorials/ex43.c
src/ksp/ksp/tutorials/ex44f.F90
src/ksp/ksp/tutorials/ex49.c
src/ksp/ksp/tutorials/ex52f.F90
src/ksp/ksp/tutorials/ex54.c
src/ksp/ksp/tutorials/ex54f.F90


Edit on GitLab

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