Package 'RcppHyperDual'

Title: Rcpp Interface to Hyper-Dual Numbers
Description: Hyper-Dual Numbers permit the exact calculation of second derivatives which is both free of truncation and subtractive cancellation. Hyper-Dual numbers were introduced Jeffrey Fike and Juan Alonson, and this package uses a header-only C++ implementation by Fike and released under the MIT license. Accurate 2nd derivatives computation.
Authors: Dirk Eddelbuettel, Ravi Varadhan and Tim Triche
Maintainer: Dirk Eddelbuettel <[email protected]>
License: GPL (>= 2)
Version: 0.0.1
Built: 2024-07-07 04:11:20 UTC
Source: https://github.com/eddelbuettel/rcpphyperdual

Help Index


Rcpp Interface to Hyper-Dual Numbers

Description

This package provides an interface to Hyper-Dual Numbers by Jeffrey Fike and Juan Alonson.

Details

To be done.

Author(s)

Dirk Eddelbuettel

Maintainer: Dirk Eddelbuettel <[email protected]>

Examples

addHD( c(1,2,0,0), c(2,-1,0,1))

Add two hyper-dual numbers

Description

This function adds two hyper-dual numbers

Usage

addHD(x, y, verbose = FALSE)

Arguments

x

A vector of length four containg a hyper-dual number

y

A vector of length four containg a hyper-dual number

verbose

A boolean variable with default ‘false’ indicating if verbose operation is desired.

Value

A vector of length four containing the resulting hyper-dual number.

Author(s)

Dirk Eddelbuettel

Examples

addHD( c(1,0,0,1), c(2,1,0,-1) )