TMB Documentation  v1.9.11
List of all members
newton::safe_eval< Functor, Type > Struct Template Reference

#include <newton.hpp>

Detailed Description

template<class Functor, class Type>
struct newton::safe_eval< Functor, Type >

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.


The documentation for this struct was generated from the following file:
License: GPL v2