Learn R Programming

scorematchingad (version 0.1.1)

tape_swap: Switch Dynamic and Independent Values of a Tape

Description

Convert an Rcpp_ADFun object so that the independent values become dynamic parameters and the dynamic parameters become independent values

Usage

tape_swap(pfun)

Value

An Rcpp_ADFun object.

Arguments

pfun

An Rcpp_ADFun object.

Details

For creating this tape, the values of pfun$xtape and pfun$dyntape are used.

See Also

Other tape builders: tape_Hessian(), tape_Jacobian(), tape_gradoffset(), tape_logJacdet(), tape_smd(), tape_uld()