Learn R Programming

scorematchingad (version 0.1.4)

fixindependent: Fix Independent Arguments of a Tape

Description

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.

Usage

fixindependent(pfun, x, isfixed)

Value

An Rcpp_ADFun object.

Arguments

pfun

An Rcpp_ADFun object.

x

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.

isfixed

A boolean vector same length as x. TRUE values are fixed at the value of x, FALSE values are left as independent arguments.

See Also

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