Home
last modified time | relevance | path

Searched refs:user_weights (Results 1 – 4 of 4) sorted by relevance

/petsc/src/mat/graphops/color/utils/
H A Dweights.c356 PetscCall(PetscMalloc2(n, &mc->user_weights, n, &mc->user_lperm)); in MatColoringSetWeights()
357 for (i = 0; i < n; i++) mc->user_weights[i] = weights[i]; in MatColoringSetWeights()
360 PetscCall(PetscSortRealWithPermutation(n, mc->user_weights, mc->user_lperm)); in MatColoringSetWeights()
371 mc->user_weights = NULL; in MatColoringSetWeights()
/petsc/src/mat/graphops/color/interface/
H A Dmatcoloring.c86 mc->user_weights = NULL; in MatColoringCreate()
112 PetscCall(PetscFree((*mc)->user_weights)); in MatColoringDestroy()
/petsc/src/mat/graphops/color/impls/greedy/
H A Dgreedy.c497 if (!mc->user_weights) { in MatColoringApply_Greedy()
500 wts = mc->user_weights; in MatColoringApply_Greedy()
519 if (!mc->user_weights) { in MatColoringApply_Greedy()
/petsc/include/petsc/private/
H A Dmatimpl.h694 PetscReal *user_weights; /* custom weights and permutation */ member