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#
mc - the
MatColoring
Output Parameters#
weights - the array of per-row weights, or
NULLif not neededlperm - the permutation that sorts
weightsin decreasing order, orNULLif 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