keeprange: Reduce Range Dimension of a Tape

View source: R/RcppExports.R

keeprangeR Documentation

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)

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).

Value

An Rcpp_ADFun object.

See Also

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


scorematchingad documentation built on Sept. 1, 2025, 9:08 a.m.