NEPSLPGetKSP — SLEPc 3.25.1 documentation

Skip to main content
`Ctrl`+`K`

# NEPSLPGetKSP

Retrieve the linear solver object (`KSP`) associated with the nonlinear eigenvalue solver.

## Synopsis

    #include "slepcnep.h"
    PetscErrorCode NEPSLPGetKSP(NEP nep,KSP *ksp)

Collective

## Input Parameter

- nep - the nonlinear eigensolver context

## Output Parameter

- ksp - the linear solver object

## Note

This `KSP` object is used only for deflation, when computing more that one eigenpair.

## See Also

NEP: Nonlinear Eigenvalue Problems, `NEPSLP`, `NEPSLPSetKSP()`

## Level

advanced

## Location

src/nep/impls/slp/slp.c

## Implementations

NEPSLPGetKSP_SLP() in src/nep/impls/slp/slp.c

Index of all NEP routines Table of Contents for all manual pages Index of all manual pages