Approximate the Jacobian of a vector function by centered differences.
Column i is evaluated using a perturbation ; thus
this routine requires nonzero entries in x for finite differences.
| Type | Intent | Optional | Attributes | Name | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
public function f(x)Vector-valued function differentiated by Arguments
Return Value real(kind=pr), (size(x))Function output vector. |
||||||||||||||||||||
| real(kind=pr), | intent(in) | :: | x(:) |
Evaluation point. |
||||||||||||||||
| real(kind=pr), | intent(in) | :: | eps |
Relative finite-difference step multiplier. |
||||||||||||||||
Approximate Jacobian matrix.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=pr), | public | :: | dx(size(x)) | ||||
| real(kind=pr), | public | :: | f1(size(x)) | ||||
| real(kind=pr), | public | :: | f2(size(x)) | ||||
| integer, | public | :: | i |
Loop/index variable. |