# MatPartitioningApplyND
Gets a nested dissection partitioning for a matrix. 
## Synopsis
```
#include "petscmat.h" 
PetscErrorCode MatPartitioningApplyND(MatPartitioning matp, IS *partitioning)
```
Collective on Mat


## Input Parameters

- ***matp -*** the matrix partitioning object



## Output Parameters

- ***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
 `MatPartitioningApplyND()`, `MatPartitioningRegister()`, `MatPartitioningCreate()`,
`MatPartitioningDestroy()`, `MatPartitioningSetAdjacency()`, `ISPartitioningToNumbering()`,
`ISPartitioningCount()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/partition/partition.c.html#MatPartitioningApplyND">src/mat/partition/partition.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/partition/impls/pmetis/pmetis.c.html#MatPartitioningApplyND_Parmetis">MatPartitioningApplyND_Parmetis in src/mat/partition/impls/pmetis/pmetis.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/partition/impls/scotch/scotch.c.html#MatPartitioningApplyND_PTScotch">MatPartitioningApplyND_PTScotch in src/mat/partition/impls/scotch/scotch.c</A><BR>


---
[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](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
