Searched refs:user_weights (Results 1 – 4 of 4) sorted by relevance
356 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()
86 mc->user_weights = NULL; in MatColoringCreate()112 PetscCall(PetscFree((*mc)->user_weights)); in MatColoringDestroy()
497 if (!mc->user_weights) { in MatColoringApply_Greedy()500 wts = mc->user_weights; in MatColoringApply_Greedy()519 if (!mc->user_weights) { in MatColoringApply_Greedy()
694 PetscReal *user_weights; /* custom weights and permutation */ member