Skip to content
Snippets Groups Projects
Verified Commit e8b55295 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Manual, external functions: when derivatives are not provided, finite difference is used

[skip ci]

(cherry picked from commit 11ef6521)
parent 6bff3a37
Branches
Tags
No related merge requests found
......@@ -740,7 +740,9 @@ required for external functions used in an EXPRESSION outside of a
provided as the only output of the M-/MEX file given as the
option argument. If NAME is not provided, this tells Dynare
that the M-/MEX file specified by the argument passed to NAME
returns the Jacobian as its second output argument.
returns the Jacobian as its second output argument. When this option is
not provided, Dynare will use finite difference approximations for
computing the derivatives of the function, whenever needed.
.. option:: second_deriv_provided [= NAME]
......@@ -750,7 +752,9 @@ required for external functions used in an EXPRESSION outside of a
that the M-/MEX file specified by the argument passed to NAME
returns the Hessian as its third output argument. NB: This
option can only be used if the ``first_deriv_provided`` option
is used in the same ``external_function`` command.
is used in the same ``external_function`` command. When this option is
not provided, Dynare will use finite difference approximations for
computing the Hessian derivatives of the function, whenever needed.
*Example*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment