ad_variant: Create Variant Functions (more) Suitable for AD.

Description Usage Arguments

Description

ad_variant is a helper function which creates variant functions more suitable for automatic differentiation.

Usage

1
ad_variant(f, checkArgs = NULL, silent = FALSE)

Arguments

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 ad_variant.


Non-Contradiction/autodiffr documentation built on May 10, 2019, 8:04 a.m.