10 #ifndef SACADO_ELRFAD_SLFADTRAITS_HPP
11 #define SACADO_ELRFAD_SLFADTRAITS_HPP
19 template <
typename T,
int Num>
class SLFad;
29 template <typename ValueT,
int Num>
35 template <
typename ValueT,
int Num>
41 template <
typename ValueT,
int Num>
47 template <
typename ValueT,
int Num>
49 static const bool value =
false;
53 template <
typename ValueT,
int Num>
62 template <
typename ValueT,
int Num>
72 template <
typename ValueT,
int Num>
74 static std::string
eval() {
76 ss <<
"Sacado::ELRFad::SLFad< "
83 template <
typename ValueT,
int Num>
88 return x.isEqualTo(y);
93 template <
typename ValueT,
int Num>
95 static const bool value =
false;
99 template <
typename ValueT,
int Num>
111 #ifdef HAVE_SACADO_TEUCHOSNUMERICS
114 template <
typename ValueT,
int Num>
122 template <
typename ValueT,
int Num,
typename R>
128 template <
typename L,
typename ValueT,
int Num>
129 struct PromotionTraits< L, Sacado::
ELRFad::SLFad<ValueT,Num> > {
138 #ifdef HAVE_SACADO_TEUCHOSCORE
141 template <
typename ValueT,
int Num>
143 public Sacado::Fad::ScalarTraitsImp< Sacado::ELRFad::SLFad<ValueT,Num> >
149 #ifdef HAVE_SACADO_TEUCHOSCOMM
152 template <
typename Ordinal,
typename ValueT,
int Num>
154 public Sacado::Fad::SerializationTraitsImp< Ordinal,
155 Sacado::ELRFad::SLFad<ValueT,Num> >
158 template <
typename Ordinal,
typename ValueT,
int Num>
160 public Sacado::Fad::SerializerImp< Ordinal,
161 Sacado::ELRFad::SLFad<ValueT,Num>,
162 ValueTypeSerializer<Ordinal,ValueT> >
165 typedef ValueTypeSerializer<Ordinal,ValueT> ValueSerializer;
166 typedef Sacado::Fad::SerializerImp< Ordinal,FadType,ValueSerializer> Base;
175 #if defined(HAVE_SACADO_KOKKOS) && defined(HAVE_SACADO_TEUCHOSKOKKOSCOMM) && defined(HAVE_SACADO_VIEW_SPEC) && !defined(SACADO_DISABLE_FAD_VIEW_SPEC)
179 #endif // SACADO_ELRFAD_SFADTRAITS_HPP
static SACADO_INLINE_FUNCTION const T & eval(const T &x)
static std::string eval()
Base template specification for ScalarValue.
Base template specification for ScalarType.
Base template specification for string names of types.
GeneralFad< StaticStorage< T, Num > > SLFad
static SACADO_INLINE_FUNCTION bool eval(const ELRFad::SLFad< ValueT, Num > &x, const ELRFad::SLFad< ValueT, Num > &y)
ValueType< ELRFad::SLFad< ValueT, Num > >::type value_type
Base template specification for IsADType.
Sacado::Fad::DFad< double > FadType
ELRFad::SLFad< ValueT, Num >::ScalarT type
Base template specification for Value.
Base template specification for testing equivalence.
ScalarType< ELRFad::SLFad< ValueT, Num > >::type scalar_type
static SACADO_INLINE_FUNCTION const value_type & eval(const ELRFad::SLFad< ValueT, Num > &x)
Base template specification for IsScalarType.
#define SACADO_SFAD_PROMOTE_SPEC(NS, FAD)
#define SACADO_INLINE_FUNCTION
static std::string eval()
static SACADO_INLINE_FUNCTION const scalar_type & eval(const ELRFad::SLFad< ValueT, Num > &x)
ValueType< ELRFad::SLFad< ValueT, Num > >::type value_type
Base template specification for ValueType.
Base template specification for testing whether type is statically sized.