MatGetDiagonalBlock

Returns the part of the matrix associated with the on-process coupling

Synopsis

#include "petscmat.h" 
PetscErrorCode PETSCMAT_DLLEXPORT MatGetDiagonalBlock(Mat A,PetscTruth *iscopy,MatReuse reuse,Mat *a)
Not Collective

Input Parameters

mat - the matrix
reuse - indicates you are passing in the a matrix and want it reused

Output Parameters

iscopy - indicates a copy of the diagonal matrix was created and you should use MatDestroy() on it
a - the diagonal part (which is a SEQUENTIAL matrix)

Notes: see the manual page for MatCreateMPIAIJ() for more information on the "diagonal part" of the matrix

Level:advanced
Location:
src/mat/interface/matrix.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages