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 MatColoring

  • weights - array of per-row weights, or NULL to clear any previously set weights

  • lperm - the permutation sorting weights in decreasing order, or NULL to 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