# MatFDColoringGetFunction
Gets the function to use for computing the Jacobian. 
## Synopsis
```
#include "petscmat.h" 
PetscErrorCode MatFDColoringGetFunction(MatFDColoring matfd, PetscErrorCode (**f)(void), void **fctx)
```
Not Collective


## Input Parameter

- ***coloring -*** the coloring context



## Output Parameters

- ***f -*** the function
- ***fctx -*** the optional user-defined function context





## See Also
 `MatFDColoring`, `MatFDColoringCreate()`, `MatFDColoringSetFunction()`, `MatFDColoringSetFromOptions()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/matfd/fdmatrix.c.html#MatFDColoringGetFunction">src/mat/matfd/fdmatrix.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/mat/matfd/fdmatrix.c)


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