:orphan: # MatPartitioningSetNumberVertexWeights Sets the number of weights per vertex ## Synopsis ``` #include "petscmat.h" PetscErrorCode MatPartitioningSetNumberVertexWeights(MatPartitioning partitioning, PetscInt ncon) ``` Not Collective ## Input Parameters - ***partitioning -*** the partitioning context - ***ncon -*** the number of weights ## See Also [](ch_matrices), `Mat`, `MatPartitioning`, `MatPartitioningSetVertexWeights()` ## Level intermediate ## Location src/mat/partition/partition.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/mat/partition/partition.c) [Index of all MatOrderings routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)