10 #ifndef SACADO_TAY_TAYLORTRAITS_HPP
11 #define SACADO_TAY_TAYLORTRAITS_HPP
18 template <
typename T>
class Taylor;
48 static const bool value =
false;
53 struct Value< Tay::Taylor<T> > {
71 static std::string
eval() {
72 return std::string(
"Sacado::Tay::Taylor< ") +
87 static const bool value =
false;
97 #ifdef HAVE_SACADO_TEUCHOSNUMERICS
100 template <
typename ValueT>
101 struct PromotionTraits< Sacado::Tay::Taylor<ValueT>,
109 template <
typename ValueT,
typename R>
110 struct PromotionTraits< Sacado::Tay::Taylor<ValueT>,
R > {
116 template <
typename L,
typename ValueT>
117 struct PromotionTraits< L, Sacado::Tay::Taylor<ValueT> > {
126 #ifdef HAVE_SACADO_TEUCHOSCORE
129 template <
typename ValueT>
130 struct ScalarTraits< Sacado::Tay::Taylor<ValueT> > :
131 public Sacado::Tay::ScalarTraitsImp< Sacado::Tay::Taylor<ValueT> >
137 #ifdef HAVE_SACADO_TEUCHOSCOMM
140 template <
typename Ordinal,
typename ValueT>
141 struct SerializationTraits<
Ordinal, Sacado::Tay::Taylor<ValueT> > :
142 public Sacado::Tay::SerializationTraitsImp< Ordinal,
143 Sacado::Tay::Taylor<ValueT> >
146 template <
typename Ordinal,
typename ValueT>
147 struct ValueTypeSerializer<
Ordinal, Sacado::Tay::Taylor<ValueT> > :
148 public Sacado::Tay::SerializerImp< Ordinal,
149 Sacado::Tay::Taylor<ValueT>,
150 ValueTypeSerializer<Ordinal,ValueT> >
153 typedef ValueTypeSerializer<Ordinal,ValueT> ValueSerializer;
154 typedef Sacado::Tay::SerializerImp< Ordinal,TayType,ValueSerializer> Base;
162 #endif // SACADO_TAYLOR_SIMPLETAYLORTRAITS_HPP
static SACADO_INLINE_FUNCTION const T & eval(const T &x)
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.
Base template specification for testing whether type is statically sized.