30 #ifndef SACADO_TAY_TAYLORTRAITS_HPP 31 #define SACADO_TAY_TAYLORTRAITS_HPP 38 template <
typename T>
class Taylor;
68 static const bool value =
false;
73 struct Value< Tay::Taylor<T> > {
91 static std::string
eval() {
92 return std::string(
"Sacado::Tay::Taylor< ") +
105 template <
typename T>
113 #ifdef HAVE_SACADO_TEUCHOS 122 template <
typename ValueT>
123 struct PromotionTraits<
Sacado::Tay::Taylor<ValueT>,
131 template <
typename ValueT,
typename R>
132 struct PromotionTraits<
Sacado::Tay::Taylor<ValueT>,
R > {
138 template <
typename L,
typename ValueT>
139 struct PromotionTraits< L,
Sacado::Tay::Taylor<ValueT> > {
146 template <
typename ValueT>
147 struct ScalarTraits<
Sacado::Tay::Taylor<ValueT> > :
148 public Sacado::Tay::ScalarTraitsImp< Sacado::Tay::Taylor<ValueT> >
152 template <
typename Ordinal,
typename ValueT>
153 struct SerializationTraits<
Ordinal,
Sacado::Tay::Taylor<ValueT> > :
154 public Sacado::Tay::SerializationTraitsImp< Ordinal,
155 Sacado::Tay::Taylor<ValueT> >
159 template <
typename Ordinal,
typename ValueT>
160 struct ValueTypeSerializer<
Ordinal,
Sacado::Tay::Taylor<ValueT> > :
161 public Sacado::Tay::SerializerImp< Ordinal,
162 Sacado::Tay::Taylor<ValueT>,
163 ValueTypeSerializer<Ordinal,ValueT> >
166 typedef ValueTypeSerializer<Ordinal,ValueT> ValueSerializer;
167 typedef Sacado::Tay::SerializerImp< Ordinal,TayType,ValueSerializer> Base;
173 #endif // HAVE_SACADO_TEUCHOS 175 #endif // SACADO_TAYLOR_SIMPLETAYLORTRAITS_HPP static std::string eval()
static const scalar_type & eval(const Tay::Taylor< T > &x)
Base template specification for ScalarValue.
Base template specification for ScalarType.
Base template specification for string names of types.
static const value_type & eval(const Tay::Taylor< T > &x)
Base template specification for IsADType.
static std::string eval()
static bool eval(const Tay::Taylor< T > &x, const Tay::Taylor< T > &y)
Base template specification for Value.
ValueType< Tay::Taylor< T > >::type value_type
#define SACADO_AD_PROMOTE_SPEC(NS, AD)
ValueType< Tay::Taylor< T > >::type value_type
Base template specification for testing equivalence.
const T & val() const
Returns value.
ScalarType< T >::type type
bool isEqualTo(const Taylor &x) const
Returns whether two Taylor objects have the same values.
ScalarType< Tay::Taylor< T > >::type scalar_type
Base template specification for IsScalarType.
Base template specification for ValueType.
static KOKKOS_INLINE_FUNCTION const T & eval(const T &x)
Base template specification for testing whether type is statically sized.