ad_variant
is a helper function which creates variant functions more suitable for automatic differentiation.
ad_variant(f, checkArgs = NULL, silent = FALSE)
f | the original function. |
---|---|
checkArgs | if given, then the original function and the new version will be checked on the argument(s). If it's a list, then it will be regarded as a list of arguments; otherwise it will be regarded as the only argument. |
silent | whether to silence the message printed by |