:orphan:
# MatPartitioningApplyND
Gets a nested dissection partitioning for a matrix.
## Synopsis
```
#include "petscmat.h"
PetscErrorCode MatPartitioningApplyND(MatPartitioning matp, IS *partitioning)
```
Collective
## Input Parameter
- ***matp -*** the matrix partitioning object
## Output Parameter
- ***partitioning -*** the partitioning. For each local node, a positive value indicates the processor
number the node has been assigned to. Negative x values indicate the separator level -(x+1).
## Note
The user can define additional partitionings; see `MatPartitioningRegister()`.
## See Also
[](ch_matrices), `Mat`, `MatPartitioningApplyND()`, `MatPartitioningRegister()`, `MatPartitioningCreate()`,
`MatPartitioningDestroy()`, `MatPartitioningSetAdjacency()`, `ISPartitioningToNumbering()`,
`ISPartitioningCount()`
## Level
intermediate
## Location
src/mat/partition/partition.c
## Implementations
MatPartitioningApplyND_Parmetis in src/mat/partition/impls/pmetis/pmetis.c
MatPartitioningApplyND_PTScotch in src/mat/partition/impls/scotch/scotch.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)