Skip to main content
`Ctrl`+`K`

# Matrix Function - MFN

Matrix Function (MFN) is the object provided by SLEPc for computing the action of a matrix function on a vector. Given a matrix A and a vector b, the call `MFNSolve`(`mfn`,`b`,`x`) computes \(x=f(A)b\), where \(f\) is a function such as the exponential.

Related Users Manual part: MFN: Matrix Function.

Examples

## Beginner - Basic usage

MFN MFNCreate MFNDestroy MFNEXPOKIT MFNGetFN | MFNKRYLOV MFNSetFN MFNSetFromOptions MFNSetOperator | MFNSolve MFNSolveTranspose MFNType MFNView

## Intermediate - Setting options for algorithms and data structures

MFNConvergedReason MFNConvergedReasonView MFNConvergedReasonViewFromOptions MFNGetConvergedReason MFNGetDimensions MFNGetErrorIfNotConverged MFNGetIterationNumber MFNGetMonitorContext MFNGetOperator | MFNGetTolerances MFNGetType MFNMonitorCancel MFNMonitorDefault MFNMonitorDefaultDrawLG MFNMonitorDefaultDrawLGCreate MFNMonitorFn MFNMonitorSet MFNSetDimensions | MFNSetErrorIfNotConverged MFNSetTolerances MFNSetType MFNViewFromOptions MFN_CONVERGED_ITERATING MFN_CONVERGED_ITS MFN_CONVERGED_TOL MFN_DIVERGED_BREAKDOWN MFN_DIVERGED_ITS

## Advanced - Setting more advanced options and customization

MFNAppendOptionsPrefix MFNGetBV MFNGetOptionsPrefix MFNMonitorRegister MFNMonitorRegisterAll | MFNMonitorRegisterCreateFn MFNMonitorRegisterDestroyFn MFNMonitorRegisterFn MFNRegister | MFNRegisterAll MFNReset MFNSetBV MFNSetOptionsPrefix

## Developer - Interfaces rarely needed by applications programmers

MFNAllocateSolution MFNFinalizePackage | MFNInitializePackage MFNMonitorSetFromOptions | MFNSetUp

## Single list of manual pages

MFN MFNAllocateSolution MFNAppendOptionsPrefix MFNConvergedReason MFNConvergedReasonView MFNConvergedReasonViewFromOptions MFNCreate MFNDestroy MFNEXPOKIT MFNFinalizePackage MFNGetBV MFNGetConvergedReason MFNGetDimensions MFNGetErrorIfNotConverged MFNGetFN MFNGetIterationNumber MFNGetMonitorContext MFNGetOperator MFNGetOptionsPrefix MFNGetTolerances | MFNGetType MFNInitializePackage MFNKRYLOV MFNMonitorCancel MFNMonitorDefault MFNMonitorDefaultDrawLG MFNMonitorDefaultDrawLGCreate MFNMonitorFn MFNMonitorRegister MFNMonitorRegisterAll MFNMonitorRegisterCreateFn MFNMonitorRegisterDestroyFn MFNMonitorRegisterFn MFNMonitorSet MFNMonitorSetFromOptions MFNRegister MFNRegisterAll MFNReset MFNSetBV | MFNSetDimensions MFNSetErrorIfNotConverged MFNSetFN MFNSetFromOptions MFNSetOperator MFNSetOptionsPrefix MFNSetTolerances MFNSetType MFNSetUp MFNSolve MFNSolveTranspose MFNType MFNView MFNViewFromOptions MFN_CONVERGED_ITERATING MFN_CONVERGED_ITS MFN_CONVERGED_TOL MFN_DIVERGED_BREAKDOWN MFN_DIVERGED_ITS