![]() |
Prev | Next |
c =
f.CompareChange()
See Also
FunCheck
F : B^n \rightarrow B^m
to denote the
AD function
corresponding to f.
This function may be not agree with the algorithm that was used
to create the corresponding
AD of Base
operation sequence
because of changes in AD
comparison
results.
The CompareChange
function can be used to detect these changes.
const ADFun<
Base>
f
size_t
c
It is the number of
AD<
Base>
comparison
operations,
corresponding to the previous call to Forward
f.Forward(0,
x)
that have a different result from
when F was created by taping an algorithm.
NDEBUG
is defined,
these operations are not included in the tape and