:orphan:
# MatMFFDType
algorithm used to compute the `h` used in computing matrix-vector products via differencing of a function 
## Synopsis
```
typedef const char *MatMFFDType;
#define MATMFFD_DS "ds"
#define MATMFFD_WP "wp"

```

## Values

- ***`MATMFFD_DS` -*** an algorithm described by Dennis and Schnabel
- ***`MATMFFD_WP` -*** the Walker-Pernice strategy.





## See Also
 [](ch_matrices), `MatMFFDSetType()`, `MatMFFDRegister()`, `MatMFFDSetFunction()`, `MatCreateMFFD()`

## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/include/petscmat.h.html#MatMFFDType">include/petscmat.h</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/include/petscmat.h)


[Index of all Mat routines](index.md)  
[Table of Contents for all manual pages](/manualpages/index.md)  
[Index of all manual pages](/manualpages/singleindex.md)  
