30 #ifndef SACADO_TAYLOR_DTAYLORTRAITS_HPP 31 #define SACADO_TAYLOR_DTAYLORTRAITS_HPP 38 template <
typename T>
class CacheTaylor;
39 template <
typename T>
class Expr;
72 static const bool value =
false;
77 struct Value< Tay::CacheTaylor<T> > {
95 static std::string
eval() {
96 return std::string(
"Sacado::Tay::CacheTaylor< ") +
101 template <
typename T>
105 return x.isEqualTo(
y);
110 template <
typename T>
122 #ifdef HAVE_SACADO_TEUCHOSNUMERICS 123 #include "Teuchos_PromotionTraits.hpp" 125 template <
typename ValueT>
126 struct PromotionTraits<
Sacado::Tay::CacheTaylor<ValueT>,
134 template <
typename ValueT,
typename R>
135 struct PromotionTraits<
Sacado::Tay::CacheTaylor<ValueT>,
R > {
141 template <
typename L,
typename ValueT>
142 struct PromotionTraits< L,
Sacado::Tay::CacheTaylor<ValueT> > {
151 #ifdef HAVE_SACADO_TEUCHOSCORE 154 template <
typename ValueT>
155 struct ScalarTraits<
Sacado::Tay::CacheTaylor<ValueT> > :
156 public Sacado::Tay::ScalarTraitsImp< Sacado::Tay::CacheTaylor<ValueT> >
162 #ifdef HAVE_SACADO_TEUCHOSCOMM 165 template <
typename Ordinal,
typename ValueT>
166 struct SerializationTraits<
Ordinal,
Sacado::Tay::CacheTaylor<ValueT> > :
167 public Sacado::Tay::SerializationTraitsImp< Ordinal,
168 Sacado::Tay::CacheTaylor<ValueT> >
171 template <
typename Ordinal,
typename ValueT>
172 struct ValueTypeSerializer<
Ordinal,
Sacado::Tay::CacheTaylor<ValueT> > :
173 public Sacado::Tay::SerializerImp< Ordinal,
174 Sacado::Tay::CacheTaylor<ValueT>,
175 ValueTypeSerializer<Ordinal,ValueT> >
178 typedef ValueTypeSerializer<Ordinal,ValueT> ValueSerializer;
179 typedef Sacado::Tay::SerializerImp< Ordinal,TayType,ValueSerializer> Base;
180 ValueTypeSerializer(
const Teuchos::RCP<const ValueSerializer>& vs,
187 #endif // SACADO_TAYLOR_DTAYLORTRAITS_HPP static SACADO_INLINE_FUNCTION const T & eval(const T &x)
static std::string eval()
Base template specification for ScalarValue.
Base template specification for ScalarType.
Forward-mode AD class using dynamic memory allocation.
ScalarType< T >::type type
Base template specification for string names of types.
ValueType< Tay::CacheTaylor< T > >::type value_type
Base template specification for IsADType.
Base template specification for Value.
#define SACADO_AD_PROMOTE_SPEC(NS, AD)
ScalarType< Tay::CacheTaylor< T > >::type scalar_type
#define SACADO_EXPR_PROMOTE_SPEC(NS)
ValueType< Tay::CacheTaylor< T > >::type value_type
Base template specification for testing equivalence.
static bool eval(const Tay::CacheTaylor< T > &x, const Tay::CacheTaylor< T > &y)
static const value_type & eval(const Tay::CacheTaylor< T > &x)
Base template specification for IsScalarType.
Base template specification for ValueType.
static const scalar_type & eval(const Tay::CacheTaylor< T > &x)
static std::string eval()
Base template specification for testing whether type is statically sized.