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