# MFNSetFunction

Specifies the function to be computed.

### Synopsis

    #include "slepcmfn.h"
    PetscErrorCode MFNSetFunction(MFN mfn,SlepcFunction fun)

Logically Collective on MFN

### Input Parameters

| mfn | - the matrix function context
| fun | - a known function

### Options Database Keys

-mfn_exp - matrix exponential

### See Also

MFNSetOperator(), MFNSetType(), MFNGetFunction(), SlepcFunction

Location: src/mfn/interface/mfnopts.c
Index of all MFN routines
Table of Contents for all manual pages
Index of all manual pages

### Examples

src/mfn/examples/tutorials/ex23.c.html