Retapes an existing CppAD tape but with some of original independent arguments fixed to specified values.
For creating this tape, the values of pfun$dyntape are used.
fixindependent(pfun, x, isfixed)An Rcpp_ADFun object.
An Rcpp_ADFun object.
A numerical vector specifying the value of all independent arguments of pfun. Some of these will be fixed according to isfixed, the remainder will remain as independent arguments.
A boolean vector same length as x. TRUE values are fixed at the value of x, FALSE values are left as independent arguments.
Other tape builders:
avgrange(),
fixdynamic(),
keeprange(),
tape_Hessian(),
tape_Jacobian(),
tape_bdryw(),
tape_gradoffset(),
tape_logJacdet(),
tape_smd(),
tape_swap(),
tape_uld()