Sacado Package Browser (Single Doxygen Collection)
Version of the Day
|
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).
Definition at line 46 of file Sacado_Base.hpp.
typedef T Sacado::Base< T >::derived_type |
Definition at line 47 of file Sacado_Base.hpp.
|
inline |
Definition at line 48 of file Sacado_Base.hpp.