MatKAIJSetA#

Set the MATAIJ matrix A describing the first Kronecker term \(A \otimes T\) of the MATKAIJ matrix

Synopsis#

#include "petscmat.h" 
PetscErrorCode MatKAIJSetA(Mat A, Mat a)

Logically Collective; if the MATAIJ matrix is parallel, the MATKAIJ matrix is also parallel

Input Parameters#

Notes#

This function increases the reference count on the MATAIJ matrix, so the user is free to destroy the matrix if it is not needed.

Changes to the entries of the MATAIJ matrix will immediately affect the MATKAIJ matrix.

A previously set MATAIJ matrix is released, so the operand may be replaced after the MATKAIJ matrix has been set up. The replacement need not have the same nonzero structure as the matrix it replaces; a MATMPIKAIJ rebuilds its ghost scatter whenever the off-diagonal ghost columns change. It must have the same row and column layout, however, since the size of the MATKAIJ matrix was fixed when it was set up. If a B operand has been set with MatKAIJSetB(), the two operands must still share their off-diagonal ghost columns.

See Also#

Matrices, Mat, MATKAIJ, MatKAIJGetA(), MatKAIJSetB(), MatKAIJSetS(), MatKAIJSetT(), MatCreateKAIJAB()

Level#

advanced

Location#

src/mat/impls/kaij/kaij.c


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