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>
92 struct Value< Fad::SimpleFad<ValueT> > {
99 template <
typename ValueT>
108 template <
typename ValueT>
111 return std::string(
"Sacado::Fad::SimpleFad< ") +
116 template <
typename ValueT>
125 template <
typename ValueT>
131 template <
typename ValueT>
132 struct IsFad< Fad::SimpleFad<ValueT> > {
139 #ifdef HAVE_SACADO_TEUCHOS 147 template <
typename ValueT>
148 struct PromotionTraits<
Sacado::Fad::SimpleFad<ValueT>,
156 template <
typename ValueT,
typename R>
157 struct PromotionTraits<
Sacado::Fad::SimpleFad<ValueT>,
R > {
163 template <
typename L,
typename ValueT>
164 struct PromotionTraits< L,
Sacado::Fad::SimpleFad<ValueT> > {
171 template <
typename ValueT>
172 struct ScalarTraits<
Sacado::Fad::SimpleFad<ValueT> > :
173 public Sacado::Fad::ScalarTraitsImp< Sacado::Fad::SimpleFad<ValueT> >
177 template <
typename Ordinal,
typename ValueT>
178 struct SerializationTraits<
Ordinal,
Sacado::Fad::SimpleFad<ValueT> > :
179 public Sacado::Fad::SerializationTraitsImp< Ordinal,
180 Sacado::Fad::SimpleFad<ValueT> >
184 template <
typename Ordinal,
typename ValueT>
185 struct ValueTypeSerializer<
Ordinal,
Sacado::Fad::SimpleFad<ValueT> > :
186 public Sacado::Fad::SerializerImp< Ordinal,
187 Sacado::Fad::SimpleFad<ValueT>,
188 ValueTypeSerializer<Ordinal,ValueT> >
191 typedef ValueTypeSerializer<Ordinal,ValueT> ValueSerializer;
192 typedef Sacado::Fad::SerializerImp< Ordinal,FadType,ValueSerializer> Base;
198 #endif // HAVE_SACADO_TEUCHOS 200 #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.
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)
KOKKOS_INLINE_FUNCTION const ValueT & val() const
Returns value.
Base template specification for Value.
Forward-mode AD class using dynamic memory allocation but no expression templates.
#define SACADO_FAD_PROMOTE_SPEC(NS, FAD)
Base template specification for testing equivalence.
static std::string eval()
ScalarType< Fad::SimpleFad< ValueT > >::type scalar_type
bool isEqualTo(const SimpleFad &x) const
Returns whether two Fad objects have the same values.
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.