MFNSolve

Solves the matrix function problem. Given a vector b, the vector x = f(alpha*A)*b is returned.

Synopsis

#include "slepcmfn.h" 
PetscErrorCode MFNSolve(MFN mfn,Vec b,Vec x)
Collective on MFN

Input Parameters

mfn - matrix function context obtained from MFNCreate()
b - the right hand side vector

Output Parameter

x - the solution

Options Database Keys

-mfn_view - print information about the solver used
-mfn_view_mat binary - save the matrix to the default binary viewer
-mfn_view_rhs binary - save right hand side vector to the default binary viewer
-mfn_view_solution binary - save computed solution vector to the default binary viewer

Notes

The matrix A is specified with MFNSetOperator(). The function f is specified with MFNSetFunction(). The scalar alpha is specified with MFNSetScaleFactor().

See Also

MFNCreate(), MFNSetUp(), MFNDestroy(), MFNSetTolerances(),
MFNSetOperator(), MFNSetFunction(), MFNSetScaleFactor()

Location: src/mfn/interface/mfnsolve.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