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.
keeprange(pfun, keep)An Rcpp_ADFun object.
An Rcpp_ADFun object.
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).
Other tape builders:
avgrange(),
fixdynamic(),
fixindependent(),
tape_Hessian(),
tape_Jacobian(),
tape_bdryw(),
tape_gradoffset(),
tape_logJacdet(),
tape_smd(),
tape_swap(),
tape_uld()