# NEPSetKSP

Associates a linear solver object to the nonlinear eigensolver.

### Synopsis

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

Collective on NEP

### Input Parameters

| nep | - eigensolver context obtained from NEPCreate()
| ksp | - the linear solver object

### Note

Use NEPGetKSP() to retrieve the linear solver context (for example, to free it at the end of the computations).

### See Also

NEPGetKSP()

Location: src/nep/interface/nepbasic.c
Index of all NEP routines
Table of Contents for all manual pages
Index of all manual pages