:orphan:
# MatSTRUMPACKSetColPerm
Set whether STRUMPACK should try to permute the columns of the matrix in order to get a nonzero diagonal 
## Synopsis
```
#include "petscmat.h" 
PetscErrorCode MatSTRUMPACKSetColPerm(Mat F, PetscBool cperm)
```
Logically Collective


## Input Parameters

- ***F -*** the factored matrix obtained by calling `MatGetFactor()`
- ***cperm -*** `PETSC_TRUE` to permute (internally) the columns of the matrix



## Options Database Key

- ***-mat_strumpack_colperm <cperm> -*** true to use the permutation





## References

- **** -*** STRUMPACK manual



## See Also
 [](ch_matrices), `MatSTRUMPACKSetReordering()`, `Mat`, `MatGetFactor()`, `MatSTRUMPACKSetHSSRelTol()`, `MatSTRUMPACKSetHSSAbsTol()`,
`MatSTRUMPACKSetHSSMaxRank()`, `MatSTRUMPACKSetHSSLeafSize()`, `MatSTRUMPACKSetHSSMinSepSize()`

## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/aij/mpi/strumpack/strumpack.c.html#MatSTRUMPACKSetColPerm">src/mat/impls/aij/mpi/strumpack/strumpack.c</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/ksp/tutorials/ex52.c.html">src/ksp/ksp/tutorials/ex52.c</A><BR>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/aij/mpi/strumpack/strumpack.c.html#MatSTRUMPACKSetColPerm_STRUMPACK">MatSTRUMPACKSetColPerm_STRUMPACK in src/mat/impls/aij/mpi/strumpack/strumpack.c</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/mat/impls/aij/mpi/strumpack/strumpack.c)


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