MATKAIJ#

MATKAIJ = “kaij” - A matrix type to be used to evaluate matrices of form [B \otimes S + A \otimes T], where .vb S is a dense (p \times q) matrix, T is a dense (p \times q) matrix, A is an AIJ (n \times n) matrix, and B is an AIJ (n \times n) matrix, or the identity matrix. .ve The resulting matrix is (np \times nq). S and T are always stored independently on all processes as PetscScalar arrays in column-major format.

Notes#

A linear system with multiple right-hand sides, AX = B, can be expressed in the KAIJ-friendly form of (A \otimes I) x = b, where x and b are column vectors containing the row-major representations of X and B.

MatCreateKAIJ() leaves the second operand as the identity, giving the common (I \otimes S + A \otimes T) form; a general B is set with MatCreateKAIJAB() or MatKAIJSetB(), which supports fewer operations (see MatCreateKAIJAB()).

A general B lets a MATKAIJ matrix carry a mass matrix, which is how TSIRK assembles the stage system of a differential-algebraic equation; see MatCreateKAIJAB() and TSSetMassMatrix().

See Also#

Matrices, Mat, MatKAIJSetA(), MatKAIJSetB(), MatKAIJSetS(), MatKAIJSetT(), MatKAIJGetA(), MatKAIJGetB(), MatKAIJGetS(), MatKAIJGetT(), MatCreateKAIJ(), MatCreateKAIJAB()

Level#

advanced

Location#

src/mat/impls/kaij/kaij.c

Examples#

src/ksp/ksp/tutorials/ex74.c
src/ksp/ksp/tutorials/ex77.c


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