MatEliminateZeros#

eliminate the nondiagonal zero entries in place from the nonzero structure of a sparse Mat in place, meaning the same memory is used for the matrix, and no new memory is allocated.

Synopsis#

#include "petscmat.h" 
PetscErrorCode MatEliminateZeros(Mat A)

Collective

Input Parameter#

  • A - the matrix

Output Parameter#

  • A - the matrix

See Also#

Matrices, Mat, MatCreate(), MatCreateGraph(), MatChop()

Level#

intermediate

Location#

src/mat/interface/matrix.c

Implementations#

MatEliminateZeros_MPIAIJ in src/mat/impls/aij/mpi/mpiaij.c
MatEliminateZeros_SeqAIJ in src/mat/impls/aij/seq/aij.c


Edit on GitLab

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