Package: nabla 0.7.2
nabla: Exact Derivatives via Automatic Differentiation
Automatic differentiation for R functions written with supported scalar arithmetic and mathematical operations. Provides a composable derivative operator D that computes gradients, Hessians, Jacobians, and arbitrary-order derivative tensors at machine precision. D(D(f)) gives Hessians, D(D(D(f))) gives third-order tensors for skewness of maximum likelihood estimators, and so on to higher orders. Supports loops and executed branches composed of supported operations. Uses nested dual numbers without finite difference truncation error; floating-point rounding and conditioning still affect results.
Authors:
nabla_0.7.2.tar.gz
nabla_0.7.2.zip(r-4.7-any)nabla_0.7.2.zip(r-4.6-any)
nabla_0.7.2.tar.gz(r-4.7-any)nabla_0.7.2.tar.gz(r-4.6-any)
nabla_0.7.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
nabla/json (API)
| # Install 'nabla' in R: |
| install.packages('nabla', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/queelius/nabla/issues
Last updated from:2c225a419a. Checks:6 OK. Indexed: no.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 152 | ||
| source / vignettes | OK | 178 | ||
| linux-release | OK | 151 | ||
| windows-devel | OK | 71 | ||
| windows-release | OK | 109 | ||
| wasm-release | OK | 86 |
Exports:atan2betaDderivderiv_ndifferentiate_ndualdual_constantdual_constant_ndual_variabledual_variable_ndual_vectorerferfcgradienthessianis_dualjacobianlbetaMathMath2OpspsigammashowSummaryvalue
Dependencies:
Last update: 2026-02-10
Started: 2026-02-10
Last update: 2026-02-10
Started: 2026-02-10
Last update: 2026-02-10
Started: 2026-02-10
Last update: 2026-02-10
Started: 2026-02-10
Last update: 2026-02-10
Started: 2026-02-10
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| nabla: Exact Derivatives via Automatic Differentiation | nabla-package nabla |
| Beta function for dual numbers | beta beta,ANY,ANY-method beta,numeric,numeric-method |
| Composable total derivative operator | D |
| Extract the derivative (tangent) part of a dual number | deriv deriv,dualr-method deriv,numeric-method |
| Extract the k-th derivative from a nested dual result | deriv_n |
| Compute a function value and all derivatives up to order n | differentiate_n |
| Create a dual number | dual |
| Create a dual constant (derivative seed = 0) | dual_constant |
| Create a constant dual for n-th order differentiation | dual_constant_n |
| Create a dual variable (derivative seed = 1) | dual_variable |
| Create a dual seeded for n-th order differentiation | dual_variable_n |
| Create a vector of dual numbers | dual_vector |
| Indexing and length for dual_vector | dual_vector-access length,dual_vector-method [,dual_vector,numeric-method |
| Dual Number Vector | dual_vector-class |
| Arithmetic and comparison operators for dual numbers | !,dualr-method *,dualr,dualr-method *,dualr,numeric-method *,numeric,dualr-method +,dualr,dualr-method +,dualr,missing-method +,dualr,numeric-method +,numeric,dualr-method -,dualr,dualr-method -,dualr,missing-method -,dualr,numeric-method -,numeric,dualr-method /,dualr,dualr-method /,dualr,numeric-method /,numeric,dualr-method dual-arithmetic Ops,dualr,dualr-method Ops,dualr,numeric-method Ops,numeric,dualr-method ^,dualr,dualr-method ^,dualr,numeric-method ^,numeric,dualr-method |
| Two-argument arctangent for dual numbers | atan2,dualr,dualr-method atan2,dualr,numeric-method atan2,numeric,dualr-method dual-atan2 |
| Coerce dual to numeric | as.numeric,dualr-method dual-coerce |
| Combine dual numbers into a dual_vector | c,dualr-method dual-combine |
| Check if a dual number is numeric | dual-is-numeric is.numeric,dualr-method |
| Logarithm with optional base for dual numbers | dual-log log,dualr-method |
| Math group generic for dual numbers | dual-math exp,dualr-method Math,dualr-method sqrt,dualr-method |
| Math2 group generic for dual numbers | dual-math2 Math2,dualr-method |
| Piecewise max and min for dual numbers | dual-maxmin max,dualr-method min,dualr-method |
| Display a dual number | dual-show show,dualr-method show,dual_vector-method |
| Summary group generic for dual numbers | dual-summary Summary,dualr-method |
| Dual Number Class for Automatic Differentiation | dualr-class |
| Error function | erf erf,dualr-method erf,numeric-method |
| Complementary error function | erfc erfc,dualr-method erfc,numeric-method |
| Compute the gradient of a scalar-valued function | gradient |
| Compute the Hessian of a scalar-valued function | hessian |
| Test whether an object is a dual number | is_dual |
| Compute the Jacobian of a vector-valued function | jacobian |
| Log-beta function for dual numbers | lbeta lbeta,dualr,dualr-method lbeta,dualr,numeric-method lbeta,numeric,dualr-method lbeta,numeric,numeric-method |
| Polygamma function for dual numbers | psigamma psigamma,dualr-method psigamma,numeric-method |
| Extract the value (primal) part of a dual number | value value,dualr-method value,numeric-method |
