slepc-3.7.3 2016-09-29
Report Typos and Errors

# NEPNLEIGSSetRKShifts

Sets a list of shifts to be used in the Rational Krylov method.

### Synopsis

    #include "slepcnep.h"
    PetscErrorCode NEPNLEIGSSetRKShifts(NEP nep,PetscInt ns,PetscScalar *shifts)

Logically Collective on NEP

### Input Parameters

| nep | - the nonlinear eigensolver context
| ns | - number of shifts
| shifts | - array of scalar values specifying the shifts

### Options Database Key

| -nep_nleigs_rk_shifts | - Sets the list of shifts

### Notes

If only one shift is provided, the subspace is built with the simpler shift-and-invert Krylov-Schur.

In the case of real scalars, complex shifts are not allowed. In the command line, a comma-separated list of complex values can be provided with the format [+/-][realnumber][+/-]realnumberi with no spaces, e.g. -nep_nleigs_rk_shifts 1.0+2.0i,1.5+2.0i,1.0+1.5i

### See Also

NEPNLEIGSGetRKShifts()

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