Rcppautodiff: An Interface to the C++ Automatic Differentiation Library 'autodiff'

Provides an interface from R to the 'autodiff' library <https://autodiff.github.io/>, a modern header-only C++ library for automatic differentiation. Unlike numerical differentiation, automatic differentiation computes derivatives of functions to machine precision without truncation error, using either forward or reverse mode. The 'autodiff' header files are shipped with this package so that other R packages can use them by including 'Rcppautodiff' in the 'LinkingTo' field of their 'DESCRIPTION' file. Example programs demonstrate computing derivatives of single-variable and multi-variable functions, gradient vectors, Jacobian matrices and derivatives with respect to parameters, using 'Rcpp' and 'RcppEigen'.

Version: 0.1.0
Imports: Rcpp (≥ 1.0.8.3), RcppEigen
LinkingTo: Rcpp, RcppEigen
Suggests: knitr, rmarkdown, tinytest
Published: 2026-07-19
DOI: 10.32614/CRAN.package.Rcppautodiff (may not be active yet)
Author: Satyaprakash Nayak ORCID iD [aut, cre]
Maintainer: Satyaprakash Nayak <satyaprakash.nayak at gmail.com>
BugReports: https://github.com/sn248/Rcppautodiff/issues
License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
URL: https://github.com/sn248/Rcppautodiff, https://sn248.github.io/Rcppautodiff/
NeedsCompilation: yes
Materials: README
CRAN checks: Rcppautodiff results

Documentation:

Reference manual: Rcppautodiff.html , Rcppautodiff.pdf
Vignettes: Introduction to 'Rcppautodiff' (source, R code)

Downloads:

Package source: Rcppautodiff_0.1.0.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): Rcppautodiff_0.1.0.tgz, r-oldrel (arm64): Rcppautodiff_0.1.0.tgz, r-release (x86_64): Rcppautodiff_0.1.0.tgz, r-oldrel (x86_64): Rcppautodiff_0.1.0.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=Rcppautodiff to link to this page.