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>
118 #ifdef HAVE_SACADO_TEUCHOS 127 template <
typename ValueT>
128 struct PromotionTraits<
Sacado::Tay::CacheTaylor<ValueT>,
136 template <
typename ValueT,
typename R>
137 struct PromotionTraits<
Sacado::Tay::CacheTaylor<ValueT>,
R > {
143 template <
typename L,
typename ValueT>
144 struct PromotionTraits< L,
Sacado::Tay::CacheTaylor<ValueT> > {
151 template <
typename ValueT>
152 struct ScalarTraits<
Sacado::Tay::CacheTaylor<ValueT> > :
153 public Sacado::Tay::ScalarTraitsImp< Sacado::Tay::CacheTaylor<ValueT> >
157 template <
typename Ordinal,
typename ValueT>
158 struct SerializationTraits<
Ordinal,
Sacado::Tay::CacheTaylor<ValueT> > :
159 public Sacado::Tay::SerializationTraitsImp< Ordinal,
160 Sacado::Tay::CacheTaylor<ValueT> >
164 template <
typename Ordinal,
typename ValueT>
165 struct ValueTypeSerializer<
Ordinal,
Sacado::Tay::CacheTaylor<ValueT> > :
166 public Sacado::Tay::SerializerImp< Ordinal,
167 Sacado::Tay::CacheTaylor<ValueT>,
168 ValueTypeSerializer<Ordinal,ValueT> >
171 typedef ValueTypeSerializer<Ordinal,ValueT> ValueSerializer;
172 typedef Sacado::Tay::SerializerImp< Ordinal,TayType,ValueSerializer> Base;
178 #endif // HAVE_SACADO_TEUCHOS 180 #endif // SACADO_TAYLOR_DTAYLORTRAITS_HPP 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.
const T & val() const
Returns value.
static bool eval(const Tay::CacheTaylor< T > &x, const Tay::CacheTaylor< T > &y)
static const value_type & eval(const Tay::CacheTaylor< T > &x)
bool isEqualTo(const Expr< S > &x) const
Returns whether two Taylor objects have the same values.
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.