MatColoringSetWeights#
Provide user weights (and optionally a permutation ordering) for a MatColoring.
Synopsis#
#include "petscmat.h"
PetscErrorCode MatColoringSetWeights(MatColoring mc, PetscReal *weights, PetscInt *lperm)
Collective
Input Parameters#
mc - the
MatColoringweights - array of per-row weights, or
NULLto clear any previously set weightslperm - the permutation sorting
weightsin decreasing order, orNULLto have it computed
Note#
The arrays are copied into the MatColoring; the caller retains ownership of weights and lperm.
See Also#
MatColoring, MatColoringCreateWeights(), 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