slepc-3.7.3 2016-09-29
Report Typos and Errors

# STRegister

Adds a method to the spectral transformation package.

### Synopsis

    #include "slepcst.h"
    PetscErrorCode STRegister(const char *name,PetscErrorCode (*function)(ST))

Not collective

### Input Parameters

| name | - name of a new user-defined transformation
| function | - routine to create method context

### Notes

STRegister() may be called multiple times to add several user-defined spectral transformations.

### Sample usage

        STRegister("my_transform",MyTransformCreate);

Then, your spectral transform can be chosen with the procedural interface via

        STSetType(st,"my_transform")

or at runtime via the option

        -st_type my_transform

### See Also

STRegisterAll()

Location: src/sys/classes/st/interface/stfunc.c
Index of all ST routines
Table of Contents for all manual pages
Index of all manual pages