# 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()` from PETSc-STRUMPACK interface
- ***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
 `MatGetFactor()`

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