GMatReorder
Reorders the matrix based on the ordering type provided.
Synopsis
#include "gvec.h"
int GMatReorder(GMat mat, IS rowIS, IS colIS, PetscTruth sparse, int bw, double frac, double tol, GMat *newmat)
Collective on GMat
Input Parameters
mat -The grid matrix to reorder
rowIS -The row permutation, usually obtained from MatGetOrdering()
colIS -The column permutation
sparse -The flag for sparsification
bw -[Optional] The sparsified bandwidth, PETSC_DECIDE gives the default
frac -[Optional] The sparsified fractional bandwidth, 0.0 gives the default
tol -[Optional] The sparsification drop tolerance, 0.0 is the default
Output Parameter
newmat -The reordered, and possibly sparsified, matrix
Options Database Keys
-gmat_order_nonzero_diagonal -
Keywords
grid matrix, ordering
See Also
MatGetOrdering(), MatPermute(), MatPermuteSparsify()
Level:advanced
Location:src/gvec/interface/gmat.c
Index of all GVec routines
Table of Contents for all manual pages
Index of all manual pages