Setup a deriv_control object

setup_deriv_control(FUN, ...)

Arguments

FUN

a function

...

arguments passed to FUN

Value

a deriv_control object

Examples

setup_deriv_control() # default
#> An object of class "deriv_control"
#> Slot ".FUN":
#> function (func, x, method = "Richardson", side = NULL, method.args = list(), 
#>     ...) 
#> UseMethod("jacobian")
#> <bytecode: 0x7fea475c26a8>
#> <environment: namespace:numDeriv>
#> 
#> Slot ".options":
#> $method
#> [1] "Richardson"
#> 
#> 
setup_deriv_control(method = "simple") # will speed up computations
#> An object of class "deriv_control"
#> Slot ".FUN":
#> function (func, x, method = "Richardson", side = NULL, method.args = list(), 
#>     ...) 
#> UseMethod("jacobian")
#> <bytecode: 0x7fea475c26a8>
#> <environment: namespace:numDeriv>
#> 
#> Slot ".options":
#> $method
#> [1] "simple"
#> 
#>