slepc-3.19.2 2023-09-05
Report Typos and Errors

# 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
src/eps/tutorials/ex10f90.F90
src/eps/tutorials/ex35.c
src/eps/tutorials/ex36.c
Index of all ST routines
Table of Contents for all manual pages
Index of all manual pages