:orphan:
# MatHtoolUsePermutation
Sets whether a `MATHTOOL` matrix should permute input (resp. output) vectors following its internal source (resp. target) permutation.
## Synopsis
```
#include "petscmat.h"
PETSC_EXTERN PetscErrorCode MatHtoolUsePermutation(Mat A, PetscBool use)
```
## Input Parameters
- ***A -*** hierarchical matrix
- ***use -*** Boolean value
## See Also
[](ch_matrices), `Mat`, `MATHTOOL`, `MatHtoolGetPermutationSource()`, `MatHtoolGetPermutationTarget()`
## Level
advanced
## Location
src/mat/impls/htool/htool.cxx
## Implementations
MatHtoolUsePermutation_Htool in src/mat/impls/htool/htool.cxx
---
[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](/manualpages/index.md)
[Index of all manual pages](/manualpages/singleindex.md)