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>
110 template <
typename T>
122 #ifdef HAVE_SACADO_TEUCHOSNUMERICS
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;
187 #endif // SACADO_TAYLOR_DTAYLORTRAITS_HPP
static std::string eval()
Base template specification for ScalarValue.
Base template specification for ScalarType.
const T & val() const
Returns value.
Forward-mode AD class using dynamic memory allocation.
ScalarType< T >::type type
Base template specification for string names of types.
bool isEqualTo(const Expr< S > &x) const
Returns whether two Taylor objects have the same values.
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 KOKKOS_INLINE_FUNCTION const T & eval(const T &x)
static const scalar_type & eval(const Tay::CacheTaylor< T > &x)
static std::string eval()
Base template specification for testing whether type is statically sized.