slepc-3.22.0 2024-09-28
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 (*applyht)(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)
            STShellSetApplyHermitianTranspose(st,applyht);  (optional, only in complex scalars)
            STShellSetBackTransform(st,backtr);             (optional)

Level

advanced

Location

src/sys/classes/st/impls/shell/shell.c

Examples

src/eps/tutorials/ex10.c
src/eps/tutorials/ex10f.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