MatColoringCreateWeights#

Create per-row weights and, optionally, a decreasing-order permutation of them for a MatColoring, using the weight scheme set on the MatColoring.

Synopsis#

#include "petscmat.h"  
PetscErrorCode MatColoringCreateWeights(MatColoring mc, PetscReal **weights, PetscInt **lperm)

Collective

Input Parameter#

Output Parameters#

  • weights - the array of per-row weights, or NULL if not needed

  • lperm - the permutation that sorts weights in decreasing order, or NULL if not needed

Note#

Both output arrays are allocated by this routine and must be freed by the caller with PetscFree().

See Also#

MatColoring, MatColoringWeightType, MatColoringSetWeights(), MatColoringGetDegrees()

Level#

developer

Location#

src/mat/graphops/color/utils/weights.c


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