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< ") +
100 return x.isEqualTo(
y);
105 template <
typename T>
117#ifdef HAVE_SACADO_TEUCHOSNUMERICS
118#include "Teuchos_PromotionTraits.hpp"
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;
175 ValueTypeSerializer(
const Teuchos::RCP<const ValueSerializer>& vs,
#define SACADO_AD_PROMOTE_SPEC(NS, AD)
Base template specification for IsADType.
static bool eval(const Tay::Taylor< T > &x, const Tay::Taylor< T > &y)
Base template specification for testing equivalence.
Base template specification for IsScalarType.
Base template specification for testing whether type is statically sized.
ScalarType< T >::type type
Base template specification for ScalarType.
ScalarType< Tay::Taylor< T > >::type scalar_type
static const scalar_type & eval(const Tay::Taylor< T > &x)
ValueType< Tay::Taylor< T > >::type value_type
Base template specification for ScalarValue.
static SACADO_INLINE_FUNCTION const T & eval(const T &x)
static std::string eval()
Base template specification for string names of types.
static std::string eval()
Base template specification for ValueType.
static const value_type & eval(const Tay::Taylor< T > &x)
ValueType< Tay::Taylor< T > >::type value_type
Base template specification for Value.