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>
117 #ifdef HAVE_SACADO_TEUCHOSNUMERICS
120 template <
typename ValueT>
121 struct PromotionTraits< Sacado::Tay::Taylor<ValueT>,
129 template <
typename ValueT,
typename R>
130 struct PromotionTraits< Sacado::Tay::Taylor<ValueT>,
R > {
136 template <
typename L,
typename ValueT>
137 struct PromotionTraits< L, Sacado::Tay::Taylor<ValueT> > {
146 #ifdef HAVE_SACADO_TEUCHOSCORE
149 template <
typename ValueT>
150 struct ScalarTraits< Sacado::Tay::Taylor<ValueT> > :
151 public Sacado::Tay::ScalarTraitsImp< Sacado::Tay::Taylor<ValueT> >
157 #ifdef HAVE_SACADO_TEUCHOSCOMM
160 template <
typename Ordinal,
typename ValueT>
161 struct SerializationTraits<
Ordinal, Sacado::Tay::Taylor<ValueT> > :
162 public Sacado::Tay::SerializationTraitsImp< Ordinal,
163 Sacado::Tay::Taylor<ValueT> >
166 template <
typename Ordinal,
typename ValueT>
167 struct ValueTypeSerializer<
Ordinal, Sacado::Tay::Taylor<ValueT> > :
168 public Sacado::Tay::SerializerImp< Ordinal,
169 Sacado::Tay::Taylor<ValueT>,
170 ValueTypeSerializer<Ordinal,ValueT> >
173 typedef ValueTypeSerializer<Ordinal,ValueT> ValueSerializer;
174 typedef Sacado::Tay::SerializerImp< Ordinal,TayType,ValueSerializer> Base;
182 #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.
bool isEqualTo(const Taylor &x) const
Returns whether two Taylor objects have the same values.
ScalarType< T >::type type
const T & val() const
Returns value.
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.