splitfngr: Combined Evaluation and Split Access of Functions

Some R functions, such as optim(), require a function its gradient passed as separate arguments. When these are expensive to calculate it may be much faster to calculate the function (fn) and gradient (gr) together since they often share many calculations (chain rule). This package allows the user to pass in a single function that returns both the function and gradient, then splits (hence 'splitfngr') them so the results can be accessed separately. The functions provided allow this to be done with any number of functions/values, not just for functions and gradients.

Install the latest version of this package by entering the following in R:
install.packages("splitfngr")
AuthorCollin Erickson
Date of publication2016-09-16 18:15:54
MaintainerCollin Erickson <collinberickson@gmail.com>
LicenseGPL-3
Version0.1.1

View on CRAN

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.