:orphan:
# KSPChebyshevEstEigGetKSP
Get the Krylov method context used to estimate eigenvalues for the Chebyshev method. If a Krylov method is not being used for this purpose, NULL is returned. The reference count of the returned `KSP` is not incremented: it should not be destroyed by the user.
## Synopsis
```
#include "petscksp.h"
PetscErrorCode KSPChebyshevEstEigGetKSP(KSP ksp, KSP *kspest)
```
## Input Parameter
- ***ksp -*** the Krylov space context
## Output Parameter
- ***kspest -*** the eigenvalue estimation Krylov space context
## See Also
[](ch_ksp), `KSPCHEBYSHEV`, `KSPChebyshevEstEigSet()`
## Level
advanced
## Location
src/ksp/ksp/impls/cheby/cheby.c
## Implementations
KSPChebyshevEstEigGetKSP_Chebyshev in src/ksp/ksp/impls/cheby/cheby.c
---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ksp/ksp/impls/cheby/cheby.c)
[Index of all KSP routines](index.md)
[Table of Contents for all manual pages](/manualpages/index.md)
[Index of all manual pages](/manualpages/singleindex.md)