49#ifndef SACADO_FAD_SFADTRAITS_HPP
50#define SACADO_FAD_SFADTRAITS_HPP
54#ifdef SACADO_NEW_FAD_DESIGN_IS_DEFAULT
66 template <
typename T,
int Num>
class SFad;
76 template <
typename ValueT,
int Num>
82 template <
typename ValueT,
int Num>
88 template <
typename ValueT,
int Num>
94 template <
typename ValueT,
int Num>
96 static const bool value =
false;
100 template <
typename ValueT,
int Num>
106 template <
typename ValueT,
int Num>
107 struct Value< Fad::SFad<ValueT,Num> > {
115 template <
typename ValueT,
int Num>
125 template <
typename ValueT,
int Num>
128 std::stringstream ss;
129 ss <<
"Sacado::Fad::SFad< "
136 template <
typename ValueT,
int Num>
141 return x.isEqualTo(
y);
146 template <
typename ValueT,
int Num>
152 template <
typename ValueT,
int Num>
158 template <
typename ValueT,
int Num>
164 template <
typename ValueT,
int Num>
176#ifdef HAVE_SACADO_TEUCHOSNUMERICS
177#include "Teuchos_PromotionTraits.hpp"
179 template <
typename ValueT,
int Num>
180 struct PromotionTraits<
Sacado::Fad::SFad<ValueT,Num>,
187 template <
typename ValueT,
int Num,
typename R>
188 struct PromotionTraits<
Sacado::Fad::SFad<ValueT,Num>,
R > {
193 template <
typename L,
typename ValueT,
int Num>
194 struct PromotionTraits< L,
Sacado::Fad::SFad<ValueT,Num> > {
203#ifdef HAVE_SACADO_TEUCHOSCORE
206 template <
typename ValueT,
int Num>
207 struct ScalarTraits<
Sacado::Fad::SFad<ValueT,Num> > :
214#ifdef HAVE_SACADO_TEUCHOSCOMM
217 template <
typename Ordinal,
typename ValueT,
int Num>
218 struct SerializationTraits<
Ordinal,
Sacado::Fad::SFad<ValueT,Num> > :
220 Sacado::Fad::SFad<ValueT,Num> >
223 template <
typename Ordinal,
typename ValueT,
int Num>
224 struct ValueTypeSerializer<
Ordinal,
Sacado::Fad::SFad<ValueT,Num> > :
226 Sacado::Fad::SFad<ValueT,Num>,
227 ValueTypeSerializer<Ordinal,ValueT> >
230 typedef ValueTypeSerializer<Ordinal,ValueT> ValueSerializer;
232 ValueTypeSerializer(
const Teuchos::RCP<const ValueSerializer>& vs,
240#if defined(HAVE_SACADO_KOKKOSCORE) && defined(HAVE_SACADO_TEUCHOSKOKKOSCOMM) && defined(HAVE_SACADO_VIEW_SPEC) && !defined(SACADO_DISABLE_FAD_VIEW_SPEC)
#define SACADO_INLINE_FUNCTION
#define SACADO_SFAD_PROMOTE_SPEC(NS, FAD)
Sacado::Fad::DFad< double > FadType
Fad specializations for Teuchos::BLAS wrappers.
GeneralFad< StaticFixedStorage< T, Num > > SFad
Base template specification for IsADType.
static SACADO_INLINE_FUNCTION bool eval(const Fad::SFad< ValueT, Num > &x, const Fad::SFad< ValueT, Num > &y)
Base template specification for testing equivalence.
Base template specification for IsScalarType.
Base template specification for IsSimdType.
Base template specification for testing whether type is statically sized.
Fad::SFad< ValueT, Num >::ScalarT type
Base template specification for ScalarType.
ScalarType< Fad::SFad< ValueT, Num > >::type scalar_type
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 ScalarValue.
static SACADO_INLINE_FUNCTION const T & eval(const T &x)
Base template specification for static size.
static const unsigned value
static std::string eval()
Base template specification for string names of types.
static std::string eval()
Base template specification for ValueType.
static SACADO_INLINE_FUNCTION const value_type & eval(const Fad::SFad< ValueT, Num > &x)
ValueType< Fad::SFad< ValueT, Num > >::type value_type
Base template specification for Value.