Skip to main content
Ctrl+K
SLEPc Home SLEPc Home
  • About
  • Installation
  • Documentation
  • C/Fortran API
  • slepc4py API
  • Material
  • Contact
  • GitLab
  • UPV
  • Feed
  • About
  • Installation
  • Documentation
  • C/Fortran API
  • slepc4py API
  • Material
  • Contact
  • GitLab
  • UPV
  • Feed
  • STSetShift

STSetShift#

Sets the shift associated with the spectral transformation.

Synopsis#

#include "slepcst.h" 
PetscErrorCode STSetShift(ST st,PetscScalar shift)

Collective

Input Parameters#

  • st - the spectral transformation context

  • shift - the value of the shift

Notes#

In some spectral transformations, changing the shift may have associated a lot of work, for example recomputing a factorization.

This function is normally not directly called by users, since the shift is indirectly set by EPSSetTarget().

See Also#

ST: Spectral Transformation, EPSSetTarget(), STGetShift(), STSetDefaultShift()

Level#

intermediate

Location#

src/sys/classes/st/interface/stfunc.c

Examples#

src/sys/classes/st/tests/test1.c
src/sys/classes/st/tests/test2.c
src/sys/classes/st/tests/test3.c
src/sys/classes/st/tests/test4.c
src/sys/classes/st/tests/test5.c
src/sys/classes/st/tests/test6.c
src/sys/classes/st/tests/test7.c
src/sys/classes/st/tests/test8.c
src/sys/classes/st/tests/test9.c
src/eps/tests/test11.c

Implementations#

STSetShift_Cayley() in src/sys/classes/st/impls/cayley/cayley.c
STSetShift_Precond() in src/sys/classes/st/impls/precond/precond.c
STSetShift_Shift() in src/sys/classes/st/impls/shift/shift.c
STSetShift_Sinvert() in src/sys/classes/st/impls/sinvert/sinvert.c


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

On this page
  • Synopsis
  • Input Parameters
  • Notes
  • See Also
  • Level
  • Location
  • Examples
  • Implementations
Edit on GitLab

This Page

  • Show Source

© Copyright 2002-2026, Universitat Politecnica de Valencia, Spain.

Created using Sphinx 8.2.3.

Built with the PyData Sphinx Theme 0.16.1.