TMB Documentation
v1.9.11
|
#include <newton.hpp>
Helper to simplify user interface of Functor by making ad_aug
version work for double
as well
In principle, the double case should be trivial, as it evaluates the functor using AD types that are constants. However, some operators might add to tape for constant inputs (by mistake). To guard aginst such mistakes, we wrap the double evaluation inside a dummy AD context.
Definition at line 1253 of file newton.hpp.