MatMissingDiagonal

Determine if sparse matrix is missing a diagonal entry (or block entry for BAIJ matrices)

Synopsis

#include "petscmat.h" 
PetscErrorCode MatMissingDiagonal(Mat mat,PetscBool *missing,PetscInt *dd)
Not Collective

Input Parameter

mat - the matrix

Output Parameters

missing - is any diagonal missing
dd - first diagonal entry that is missing (optional) on this process

Level: advanced

See Also

MatRealPart()

Location:matrix.c