slepc-3.16.1 2021-11-17
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)

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

Examples

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