Prev | Next |
chkpoint_two<Base> chk_fun( fun, name,
internal_bool, use_hes_sparsity, use_base2ad, use_in_parallel
)
chk_fun(ax, ay)
chk_fun.new_dynamic(dynamic)
ADFun<Base>
object.
chkpoint_two
functions
because the same checkpoint function may be used repeatedly
with different arguments during a single forward mode operation.
Thus, forward mode results are computed for each use of
chk_fun
in a forward mode sweep.
chkpoint_two
class is derived from atomic_three
,
hence some of its error message will refer to atomic operations.
The chkpoint_two
class implements all the
virtual functions
and hence its source code,
include/cppad/core/chkpoint_two/chkpoint_two.hpp
provides an example for atomic_three
operations.
The difference is that chkpoint_two.hpp
uses AD
instead of user provided derivatives.
Base
specifies the base type for AD operations;
i.e.,
chk_fun
can be used during the recording of
AD<Base>
operations.
chkpoint_two_ctor | Checkpoint Function Constructor |
chkpoint_two_chk_fun | Using Checkpoint Functions |
chkpoint_two_dynamic | Dynamic Parameters in Checkpoint Functions |
chkpoint_two_get_started.cpp | Get Started Checkpointing: Example and Test |
chkpoint_two_compare.cpp | Compare With and Without Checkpointing: Example and Test |
chkpoint_two_base2ad.cpp | Checkpointing With base2ad: Example and Test |
chkpoint_two_dynamic.cpp | Checkpoint Functions with Dynamic Parameters: Example and Test |
chkpoint_two_ode.cpp | Checkpointing an ODE Solver: Example and Test |