:orphan:
# MatSTRUMPACKSetHSSMaxRank
Set STRUMPACK maximum HSS rank
## Synopsis
```
#include "petscmat.h"
PetscErrorCode MatSTRUMPACKSetHSSMaxRank(Mat F, PetscInt hssmaxrank)
```
Logically Collective
## Input Parameters
- ***F -*** the factored matrix obtained by calling `MatGetFactor()`
- ***hssmaxrank -*** maximum rank used in low-rank approximation
## Options Database Key
- ***-mat_strumpack_max_rank -*** Maximum rank in HSS compression, when using pctype ilu (None)
## References
- **** -*** STRUMPACK manual
## See Also
[](ch_matrices), `Mat`, `MatGetFactor()`, `MatSTRUMPACKSetReordering()`, `MatSTRUMPACKSetColPerm()`, `MatSTRUMPACKSetHSSRelTol()`,
`MatSTRUMPACKSetHSSAbsTol()`, `MatSTRUMPACKSetHSSLeafSize()`, `MatSTRUMPACKSetHSSMinSepSize()`
## Level
beginner
## Location
src/mat/impls/aij/mpi/strumpack/strumpack.c
## Examples
src/ksp/ksp/tutorials/ex52.c
## Implementations
MatSTRUMPACKSetHSSMaxRank_STRUMPACK in src/mat/impls/aij/mpi/strumpack/strumpack.c
---
[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)