#include "petscmat.h" PetscErrorCode MatReorderForNonzeroDiagonal(Mat mat,PetscReal abstol,IS ris,IS cis)Collective on Mat Many br
mat | - matrix to reorder Many br | |
rmap,cmap | - row and column permutations. Usually obtained from Many brMatGetOrdering(). Many br |
Many br
Only works for SeqAIJ matrices Many br
1) Choice of column is made by looking at the Many brnon-zero elements in the troublesome row for columns that are not yet Many brincluded (moving from left to right). Many br
2) If (1) fails we check all the columns to the left of the current row Many brand see if one of them has could be swapped. It can be swapped if Many brits corresponding row has a non-zero in the column it is being Many brswapped with; to make sure the previous nonzero diagonal remains Many brnonzero Many br
Level:intermediate
Location:src/mat/utils/zerodiag.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages