![]() |
Prev | Next | chkpoint_two_ctor |
chkpoint_two<Base> chk_fun( fun, name,
internal_bool, use_hes_sparsity, use_base2ad, use_in_parallel
)
template <class Base> chkpoint_two<Base>::chkpoint_two( const ADFun<Base>& fun , const std::string& name , bool internal_bool , bool use_hes_sparsity , bool use_base2ad , bool use_in_parallel )
chk_fun
should not be destructed for as long as there is
an
ADFun<Base>
object the has
chk_fun
in its recording.
Base
specifies the base type for AD operations.
fun
may or may not have been
optimized
before calling the constructor.
This will determine if the internal representation for
g(x)
is optimized.
ADFun<Base>
objects that have uses of
chk_fun
in their recording.
This requires some extra memory and extra computation during the constructor.
chk_fun
can be used during the recording
of
ADFun<Base>
objects that get converted to
ADFun< AD<Base> >
objects using base2ad
.
This requires some extra memory and extra computation during the constructor.
chk_fun
can be used
in_parallel
.
This requires some extra memory for a constant copy of the
fun
information and a separate copy (that changes) for each thread.
AD<Base>
operations.