# MatHtoolGetPermutationSource
Gets the permutation associated to the source cluster for a `MATHTOOL` matrix. 
## Synopsis
```
#include "petscmat.h" 
PETSC_EXTERN PetscErrorCode MatHtoolGetPermutationSource(Mat A, IS *is)
```

## Input Parameter

- ***A -*** hierarchical matrix



## Output Parameter

- ***is -*** permutation





## See Also
 `MATHTOOL`, `MatHtoolGetPermutationTarget()`, `MatHtoolUsePermutation()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/htool/htool.cxx.html#MatHtoolGetPermutationSource">src/mat/impls/htool/htool.cxx</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/htool/htool.cxx.html#MatHtoolGetPermutationSource_Htool">MatHtoolGetPermutationSource_Htool in src/mat/impls/htool/htool.cxx</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/mat/impls/htool/htool.cxx)


[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)  
