Sacado
Development
|
Base class for Sacado types to control overload resolution. More...
#include <Sacado_Base.hpp>
Public Types | |
typedef T | derived_type |
Public Member Functions | |
const derived_type & | derived () const |
Base class for Sacado types to control overload resolution.
Non-expression template-based Sacado AD types should be derived from this class using the AD type as the template parameter (through CRTP) and implement their overloads using this type instead of the AD type. The purpose of this is to control the visible overload set for the math functions so Sacado's overloads only match when at least one of the arguments is in fact a Sacado type (since most AD types enable implicit conversions from their inner scalar type).