30 #ifndef SACADO_FAD_SFADTRAITS_HPP
31 #define SACADO_FAD_SFADTRAITS_HPP
35 #ifdef SACADO_NEW_FAD_DESIGN_IS_DEFAULT
47 template <
typename T,
int Num>
class SFad;
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::SFad< "
117 template <
typename ValueT,
int Num>
122 return x.isEqualTo(y);
127 template <
typename ValueT,
int Num>
133 template <
typename ValueT,
int Num>
139 template <
typename ValueT,
int Num>
145 template <
typename ValueT,
int Num>
157 #ifdef HAVE_SACADO_TEUCHOSNUMERICS
160 template <
typename ValueT,
int Num>
161 struct PromotionTraits< Sacado::
Fad::SFad<ValueT,Num>,
168 template <
typename ValueT,
int Num,
typename R>
169 struct PromotionTraits< Sacado::
Fad::SFad<ValueT,Num>,
R > {
174 template <
typename L,
typename ValueT,
int Num>
175 struct PromotionTraits< L, Sacado::
Fad::SFad<ValueT,Num> > {
184 #ifdef HAVE_SACADO_TEUCHOSCORE
187 template <
typename ValueT,
int Num>
188 struct ScalarTraits< Sacado::
Fad::SFad<ValueT,Num> > :
189 public Sacado::Fad::ScalarTraitsImp< Sacado::Fad::SFad<ValueT,Num> >
195 #ifdef HAVE_SACADO_TEUCHOSCOMM
198 template <
typename Ordinal,
typename ValueT,
int Num>
200 public Sacado::Fad::SerializationTraitsImp< Ordinal,
201 Sacado::Fad::SFad<ValueT,Num> >
204 template <
typename Ordinal,
typename ValueT,
int Num>
206 public Sacado::Fad::SerializerImp< Ordinal,
207 Sacado::Fad::SFad<ValueT,Num>,
208 ValueTypeSerializer<Ordinal,ValueT> >
211 typedef ValueTypeSerializer<Ordinal,ValueT> ValueSerializer;
212 typedef Sacado::Fad::SerializerImp< Ordinal,FadType,ValueSerializer> Base;
221 #if defined(HAVE_SACADO_KOKKOS) && defined(HAVE_SACADO_TEUCHOSKOKKOSCOMM) && defined(HAVE_SACADO_VIEW_SPEC) && !defined(SACADO_DISABLE_FAD_VIEW_SPEC)
225 #endif // SACADO_NEW_FAD_DESIGN_IS_DEFAULT
227 #endif // SACADO_FAD_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.
ValueType< Fad::SFad< ValueT, Num > >::type value_type
Base template specification for IsADType.
static std::string eval()
Sacado::Fad::DFad< double > FadType
Base template specification for static size.
Base template specification for Value.
static SACADO_INLINE_FUNCTION bool eval(const Fad::SFad< ValueT, Num > &x, const Fad::SFad< ValueT, Num > &y)
Base template specification for IsSimdType.
static SACADO_INLINE_FUNCTION const scalar_type & eval(const Fad::SFad< ValueT, Num > &x)
ValueType< Fad::SFad< ValueT, Num > >::type value_type
Base template specification for testing equivalence.
ScalarType< Fad::SFad< ValueT, Num > >::type scalar_type
Fad::SFad< ValueT, Num >::ScalarT type
Base template specification for IsScalarType.
#define SACADO_SFAD_PROMOTE_SPEC(NS, FAD)
#define SACADO_INLINE_FUNCTION
static const unsigned value
static SACADO_INLINE_FUNCTION const value_type & eval(const Fad::SFad< ValueT, Num > &x)
GeneralFad< StaticFixedStorage< T, Num > > SFad
Base template specification for ValueType.
Base template specification for testing whether type is statically sized.