slepc-3.16.0 2021-09-30
Report Typos and Errors

MFNSolve

Solves the matrix function problem. Given a vector b, the vector x = f(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 (this may be the same vector as b, then b will be overwritten with the answer)

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
-mfn_converged_reason  - print reason for convergence, and number of iterations

Notes

The matrix A is specified with MFNSetOperator(). The function f is specified with MFNSetFN().

See Also

MFNCreate(), MFNSetUp(), MFNDestroy(), MFNSetTolerances(),
MFNSetOperator(), MFNSetFN()

Location: src/mfn/interface/mfnsolve.c

Examples

src/eps/tutorials/ex36.c.html
src/mfn/tutorials/ex23.c.html
src/mfn/tutorials/ex26.c.html
src/mfn/tutorials/ex37.c.html
src/mfn/tutorials/ex39.c.html
src/mfn/tutorials/ex23f90.F90.html

Index of all MFN routines
Table of Contents for all manual pages
Index of all manual pages