49 #ifndef SACADO_FAD_SIMPLEFADTRAITS_HPP
50 #define SACADO_FAD_SIMPLEFADTRAITS_HPP
57 template <
typename T>
class SimpleFad;
67 template <typename ValueT>
73 template <
typename ValueT>
79 template <
typename ValueT>
85 template <
typename ValueT>
87 static const bool value =
false;
91 template <
typename ValueT>
97 template <
typename ValueT>
98 struct Value< Fad::SimpleFad<ValueT> > {
105 template <
typename ValueT>
114 template <
typename ValueT>
117 return std::string(
"Sacado::Fad::SimpleFad< ") +
122 template <
typename ValueT>
131 template <
typename ValueT>
137 template <
typename ValueT>
138 struct IsFad< Fad::SimpleFad<ValueT> > {
149 #ifdef HAVE_SACADO_TEUCHOSNUMERICS
152 template <
typename ValueT>
153 struct PromotionTraits< Sacado::Fad::SimpleFad<ValueT>,
160 template <
typename ValueT,
typename R>
161 struct PromotionTraits< Sacado::Fad::SimpleFad<ValueT>,
R > {
166 template <
typename L,
typename ValueT>
167 struct PromotionTraits< L, Sacado::Fad::SimpleFad<ValueT> > {
176 #ifdef HAVE_SACADO_TEUCHOSCORE
179 template <
typename ValueT>
180 struct ScalarTraits< Sacado::Fad::SimpleFad<ValueT> > :
181 public Sacado::Fad::ScalarTraitsImp< Sacado::Fad::SimpleFad<ValueT> >
187 #ifdef HAVE_SACADO_TEUCHOSCOMM
190 template <
typename Ordinal,
typename ValueT>
191 struct SerializationTraits<
Ordinal, Sacado::Fad::SimpleFad<ValueT> > :
192 public Sacado::Fad::SerializationTraitsImp< Ordinal,
193 Sacado::Fad::SimpleFad<ValueT> >
196 template <
typename Ordinal,
typename ValueT>
197 struct ValueTypeSerializer<
Ordinal, Sacado::Fad::SimpleFad<ValueT> > :
198 public Sacado::Fad::SerializerImp< Ordinal,
199 Sacado::Fad::SimpleFad<ValueT>,
200 ValueTypeSerializer<Ordinal,ValueT> >
203 typedef ValueTypeSerializer<Ordinal,ValueT> ValueSerializer;
204 typedef Sacado::Fad::SerializerImp< Ordinal,FadType,ValueSerializer> Base;
212 #endif // SACADO_FAD_SIMPLEFADTRAITS_HPP
static bool eval(const Fad::SimpleFad< ValueT > &x, const Fad::SimpleFad< ValueT > &y)
static std::string eval()
ValueType< Fad::SimpleFad< ValueT > >::type value_type
Base template specification for ScalarValue.
Base template specification for ScalarType.
Base template specification for whether a type is a Fad type.
Base template specification for string names of types.
KOKKOS_INLINE_FUNCTION const ValueT & val() const
Returns value.
Base template specification for IsADType.
static const scalar_type & eval(const Fad::SimpleFad< ValueT > &x)
Sacado::Fad::DFad< double > FadType
ScalarType< ValueT >::type ScalarT
Typename of scalar's (which may be different from ValueT)
Base template specification for Value.
Forward-mode AD class using dynamic memory allocation but no expression templates.
Base template specification for IsSimdType.
#define SACADO_FAD_PROMOTE_SPEC(NS, FAD)
Base template specification for testing equivalence.
static std::string eval()
bool isEqualTo(const SimpleFad &x) const
Returns whether two Fad objects have the same values.
ScalarType< Fad::SimpleFad< ValueT > >::type scalar_type
Fad::SimpleFad< ValueT >::ScalarT type
Base template specification for IsScalarType.
static const value_type & eval(const Fad::SimpleFad< ValueT > &x)
Base template specification for ValueType.
static KOKKOS_INLINE_FUNCTION const T & eval(const T &x)
ValueType< Fad::SimpleFad< ValueT > >::type value_type
Base template specification for testing whether type is statically sized.