30 #ifndef SACADO_FAD_SLFADTRAITS_HPP
31 #define SACADO_FAD_SLFADTRAITS_HPP
35 #ifdef SACADO_NEW_FAD_DESIGN_IS_DEFAULT
47 template <
typename T,
int Num>
class SLFad;
57 template <typename ValueT,
int Num>
63 template <
typename ValueT,
int Num>
69 template <
typename ValueT,
int Num>
75 template <
typename ValueT,
int Num>
77 static const bool value =
false;
81 template <
typename ValueT,
int Num>
87 template <
typename ValueT,
int Num>
96 template <
typename ValueT,
int Num>
106 template <
typename ValueT,
int Num>
109 std::stringstream ss;
110 ss <<
"Sacado::Fad::SLFad< "
117 template <
typename ValueT,
int Num>
122 return x.isEqualTo(y);
127 template <
typename ValueT,
int Num>
133 template <
typename ValueT,
int Num>
145 #ifdef HAVE_SACADO_TEUCHOSNUMERICS
148 template <
typename ValueT,
int Num>
149 struct PromotionTraits< Sacado::
Fad::SLFad<ValueT,Num>,
156 template <
typename ValueT,
int Num,
typename R>
157 struct PromotionTraits< Sacado::
Fad::SLFad<ValueT,Num>,
R > {
162 template <
typename L,
typename ValueT,
int Num>
163 struct PromotionTraits< L, Sacado::
Fad::SLFad<ValueT,Num> > {
172 #ifdef HAVE_SACADO_TEUCHOSCORE
175 template <
typename ValueT,
int Num>
176 struct ScalarTraits< Sacado::
Fad::SLFad<ValueT,Num> > :
177 public Sacado::Fad::ScalarTraitsImp< Sacado::Fad::SLFad<ValueT,Num> >
183 #ifdef HAVE_SACADO_TEUCHOSCOMM
186 template <
typename Ordinal,
typename ValueT,
int Num>
188 public Sacado::Fad::SerializationTraitsImp< Ordinal,
189 Sacado::Fad::SLFad<ValueT,Num> >
192 template <
typename Ordinal,
typename ValueT,
int Num>
194 public Sacado::Fad::SerializerImp< Ordinal,
195 Sacado::Fad::SLFad<ValueT,Num>,
196 ValueTypeSerializer<Ordinal,ValueT> >
199 typedef ValueTypeSerializer<Ordinal,ValueT> ValueSerializer;
200 typedef Sacado::Fad::SerializerImp< Ordinal,FadType,ValueSerializer> Base;
209 #if defined(HAVE_SACADO_KOKKOSCORE) && defined(HAVE_SACADO_TEUCHOSKOKKOSCOMM) && defined(HAVE_SACADO_VIEW_SPEC) && !defined(SACADO_DISABLE_FAD_VIEW_SPEC)
213 #endif // SACADO_NEW_FAD_DESIGN_IS_DEFAULT
215 #endif // SACADO_FAD_SFADTRAITS_HPP
static std::string eval()
Base template specification for ScalarValue.
Base template specification for ScalarType.
static std::string eval()
Base template specification for string names of types.
GeneralFad< StaticStorage< T, Num > > SLFad
Base template specification for IsADType.
Sacado::Fad::DFad< double > FadType
static KOKKOS_INLINE_FUNCTION const value_type & eval(const Fad::SLFad< ValueT, Num > &x)
Fad::SLFad< ValueT, Num >::ScalarT type
Base template specification for Value.
static KOKKOS_INLINE_FUNCTION const scalar_type & eval(const Fad::SLFad< ValueT, Num > &x)
Base template specification for IsSimdType.
#define KOKKOS_INLINE_FUNCTION
Base template specification for testing equivalence.
ScalarType< Fad::SLFad< ValueT, Num > >::type scalar_type
ValueType< Fad::SLFad< ValueT, Num > >::type value_type
ValueType< Fad::SLFad< ValueT, Num > >::type value_type
Base template specification for IsScalarType.
#define SACADO_SFAD_PROMOTE_SPEC(NS, FAD)
static KOKKOS_INLINE_FUNCTION bool eval(const Fad::SLFad< ValueT, Num > &x, const Fad::SLFad< ValueT, Num > &y)
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.