:orphan: # PCFactorReorderForNonzeroDiagonal reorders rows/columns of matrix to remove zeros from diagonal ## Synopsis ``` #include "petscpc.h" PetscErrorCode PCFactorReorderForNonzeroDiagonal(PC pc, PetscReal rtol) ``` Logically Collective ## Input Parameters - ***pc -*** the preconditioner context - ***tol -*** diagonal entries smaller than this in absolute value are considered zero ## Options Database Key - ***-pc_factor_nonzeros_along_diagonal -*** perform the reordering with the given tolerance ## See Also `PCILU`, `PCICC`, `PCFactorSetFill()`, `PCFactorSetShiftNonzero()`, `PCFactorSetZeroPivot()`, `MatReorderForNonzeroDiagonal()` ## Level intermediate ## Location src/ksp/pc/impls/factor/factor.c ## Implementations PCFactorReorderForNonzeroDiagonal_ILU in src/ksp/pc/impls/factor/ilu/ilu.c
PCFactorReorderForNonzeroDiagonal_LU in src/ksp/pc/impls/factor/lu/lu.c
--- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ksp/pc/impls/factor/factor.c) [Index of all PC routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)