51 #ifndef SACADO_FAD_DVFADTRAITS_HPP 52 #define SACADO_FAD_DVFADTRAITS_HPP 59 template <
typename T>
class DVFad;
69 template <
typename ValueT>
75 template <
typename ValueT>
81 template <
typename ValueT>
87 template <
typename ValueT>
89 static const bool value =
false;
93 template <
typename ValueT>
94 struct Value< Fad::DVFad<ValueT> > {
101 template <
typename ValueT>
110 template <
typename ValueT>
113 return std::string(
"Sacado::Fad::DVFad< ") +
118 template <
typename ValueT>
121 return x.isEqualTo(y);
126 template <
typename ValueT>
131 template <
typename T>
139 #ifdef HAVE_SACADO_TEUCHOS 147 template <
typename ValueT>
148 struct PromotionTraits<
Sacado::Fad::DVFad<ValueT>,
156 template <
typename ValueT,
typename R>
157 struct PromotionTraits<
Sacado::Fad::DVFad<ValueT>,
R > {
163 template <
typename L,
typename ValueT>
164 struct PromotionTraits< L,
Sacado::Fad::DVFad<ValueT> > {
171 template <
typename ValueT>
172 struct ScalarTraits<
Sacado::Fad::DVFad<ValueT> > :
173 public Sacado::Fad::ScalarTraitsImp< Sacado::Fad::DVFad<ValueT> >
176 #endif // HAVE_SACADO_TEUCHOS 178 #endif // SACADO_FAD_DVFADTRAITS_HPP ValueType< Fad::DVFad< ValueT > >::type value_type
ScalarType< Fad::DVFad< ValueT > >::type scalar_type
static std::string eval()
static bool eval(const Fad::DVFad< ValueT > &x, const Fad::DVFad< ValueT > &y)
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.
Base template specification for Value.
static const scalar_type & eval(const Fad::DVFad< ValueT > &x)
Fad::DVFad< ValueT >::ScalarT type
#define SACADO_FAD_PROMOTE_SPEC(NS, FAD)
Base template specification for testing equivalence.
static std::string eval()
Forward-mode AD class using dynamic memory allocation and expression templates.
ValueType< Fad::DVFad< ValueT > >::type value_type
ScalarType< ValueT >::type ScalarT
Typename of scalar's (which may be different from ValueT)
static const value_type & eval(const Fad::DVFad< ValueT > &x)
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.