slepc-3.18.0 2022-10-01
STSHELL
User-defined spectral transformation via callback functions for the application of the operator to a vector and (optionally) the backtransform operation.
Usage
extern PetscErrorCode (*apply)(void*,Vec,Vec);
extern PetscErrorCode (*applytrans)(void*,Vec,Vec);
extern PetscErrorCode (*backtr)(void*,PetscScalar*,PetscScalar*);
STCreate(comm,&st);
STSetType(st,STSHELL);
STShellSetContext(st,ctx);
STShellSetApply(st,apply);
STShellSetApplyTranspose(st,applytrans); (optional)
STShellSetBackTransform(st,backtr); (optional)
Level
advanced
Location
src/sys/classes/st/impls/shell/shell.c
Examples
src/eps/tutorials/ex10.c.html
src/eps/tutorials/ex10f90.F90.html
src/eps/tutorials/ex35.c.html
src/eps/tutorials/ex36.c.html
Index of all ST routines
Table of Contents for all manual pages
Index of all manual pages