- call
a call to a nimbleFunction
method with arguments
included. Can also be a call to model$calculate(nodes)
, or to
calculate(model, nodes)
.
- wrt
a character vector of either: names of function arguments
(if taking derivatives of a nimbleFunction
method), or node names
(if taking derivatives of model$calculate(nodes)
) to take derivatives
with respect to. If left empty, derivatives will be taken with respect to
all arguments to nimFxn
.
- order
an integer vector with values within the set \({0, 1, 2}\),
corresponding to whether the function value, Jacobian, and Hessian should be
returned respectively. Defaults to c(0, 1, 2)
.
- model
(optional) for derivatives of a nimbleFunction that involves model.
calculations, the uncompiled model that is used. This is needed in order
to be able to correctly restore values into the model when order
does not
include 0 (or in all cases when double-taping).
- ...
additional arguments intended for internal use only.