MatMFFD — PETSc 3.25.4 documentation

Skip to main content
`Ctrl`+`K`

# MatMFFD

A data structured used to manage the computation of the h differencing parameter for matrix-free Jacobian vector products

## Synopsis

    typedef struct _p_MatMFFD *MatMFFD;

## Notes

`MATMFFD` is a specific `MatType` which uses the `MatMFFD` data structure

MatMFFD*() methods actually take the `Mat` as their first argument. Not a `MatMFFD` data structure

This functionality is often obtained using `MatCreateSNESMF()` or with `SNES` solvers using `-snes_mf` or `-snes_mf_operator`

## See Also

Matrices, `MatMFFDType`, `MATMFFD`, `MatCreateMFFD()`, `MatMFFDSetFuction()`, `MatMFFDSetType()`, `MatMFFDRegister()`, `MatCreateSNESMF()`, `SNES`, `-snes_mf`, `-snes_mf_operator`

## Level

developer

## Location

include/petscmat.h

## Implementations

_p_MatMFFD in src/mat/impls/mffd/mffdimpl.h
MatMFFD_DS in src/mat/impls/mffd/mffddef.c
MatMFFD_WP in src/mat/impls/mffd/wp.c

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