Learn R Programming

scorematchingad (version 0.1.4)

fixdynamic: Fix Dynamic Parameters of a Tape

Description

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.

Usage

fixdynamic(pfun, theta, isfixed)

Value

An Rcpp_ADFun object.

Arguments

pfun

An Rcpp_ADFun object.

theta

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.

isfixed

A boolean vector same length as theta. TRUE values are fixed at the value of theta, FALSE values are left dynamic.

See Also

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