# MatPartitioning
Object for managing the partitioning of a matrix or graph 
## Synopsis
```
typedef struct _p_MatPartitioning *MatPartitioning;
```



## Note
There is also a `PetscPartitioner` object that provides the same functionality. It can utilize the `MatPartitioning` operations
via `PetscPartitionerSetType`(p,`PETSCPARTITIONERMATPARTITIONING`)


## Developers Note
It is an extra maintenance and documentation cost to have two objects with the same functionality.


## See Also
 `MatPartitioningCreate()`, `MatPartitioningType`, `MatColoring`, `MatGetOrdering()`

## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/include/petscmat.h.html#MatPartitioning">include/petscmat.h</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/include/petsc/private/matimpl.h.html#_p_MatPartitioning">_p_MatPartitioning in include/petsc/private/matimpl.h</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/include/petscmat.h)


[Index of all Mat routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
