MATSEQAIJ#
MATSEQAIJ = “seqaij” - A matrix type to be used for sequential sparse matrices, based on compressed sparse row format.
Options Database Key#
-mat_type seqaij - sets the matrix type to “seqaij” during a call to MatSetFromOptions()
Notes#
MatSetValues() may be called with a NULL argument for the numerical values to insert zeros at the supplied row and column indices.
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.
Developer Note#
It would be nice if all matrix formats supported passing NULL in for the numerical values
See Also#
Matrices, Mat, MatCreateSeqAIJ(), MatSetFromOptions(), MatSetType(), MatCreate(), MatType, MATSELL, MATSEQSELL, MATMPISELL
Level#
beginner
Location#
Examples#
src/mat/tutorials/ex1.c
src/mat/tutorials/ex12.c
src/mat/tests/ex100.c
src/mat/tests/ex101.c
src/mat/tests/ex103.c
src/mat/tests/ex116.c
src/mat/tests/ex161.c
src/mat/tests/ex162.c
src/mat/tests/ex174.cxx
src/mat/tests/ex192.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages