Learn R Programming

scorematchingad (version 0.1.4)

keeprange: Reduce Range Dimension of a Tape

Description

Retapes an existing CppAD tape omitting some of the returned elements. For creating this tape, the values of pfun$dyntape and pfun$xtape are used.

Usage

keeprange(pfun, keep)

Value

An Rcpp_ADFun object.

Arguments

pfun

An Rcpp_ADFun object.

keep

Integers (lowest of 1, highest of pfun$range) specifying which elements of the range to keep. To keep all pass keep = seq(1, pfun$range).

See Also

Other tape builders: avgrange(), fixdynamic(), fixindependent(), tape_Hessian(), tape_Jacobian(), tape_bdryw(), tape_gradoffset(), tape_logJacdet(), tape_smd(), tape_swap(), tape_uld()