10 #ifndef SACADO_PCE_ORTHOGPOLYTRAITS_HPP
11 #define SACADO_PCE_ORTHOGPOLYTRAITS_HPP
13 #include "Sacado_Traits.hpp"
25 SACADO_AD_PROMOTE_SPEC2( PCE, OrthogPoly )
28 template <typename T, typename S>
29 struct ScalarType< PCE::OrthogPoly<T,S> > {
34 template <
typename T,
typename S>
35 struct ValueType< PCE::OrthogPoly<T,S> > {
40 template <
typename T,
typename S>
41 struct IsADType< PCE::OrthogPoly<T,S> > {
42 static const bool value =
true;
46 template <
typename T,
typename S>
47 struct IsScalarType< PCE::OrthogPoly<T,S> > {
48 static const bool value =
false;
52 template <
typename T,
typename S>
53 struct Value< PCE::OrthogPoly<T,S> > {
54 typedef typename ValueType< PCE::OrthogPoly<T,S> >::type
value_type;
60 template <
typename T,
typename S>
61 struct ScalarValue< PCE::OrthogPoly<T,S> > {
62 typedef typename ValueType< PCE::OrthogPoly<T,S> >::type
value_type;
63 typedef typename ScalarType< PCE::OrthogPoly<T,S> >::type
scalar_type;
65 return ScalarValue<value_type>::eval(x.val()); }
69 template <
typename T,
typename S>
70 struct StringName< PCE::OrthogPoly<T,S> > {
71 static std::string
eval() {
72 return std::string(
"Sacado::PCE::OrthogPoly< ") +
73 StringName<T>::eval() +
" >"; }
77 template <
typename T,
typename S>
78 struct IsEqual< PCE::OrthogPoly<T,S> > {
81 return x.isEqualTo(y);
86 template <
typename T,
typename S>
87 struct IsStaticallySized< PCE::OrthogPoly<T,S> > {
88 static const bool value =
false;
103 template <
typename T,
typename S>
106 typedef typename Sacado::Promote< Sacado::PCE::OrthogPoly<T,S>,
112 template <
typename T,
typename S,
typename R>
114 typedef typename Sacado::Promote< Sacado::PCE::OrthogPoly<T,S>, R >::type
119 template <
typename L,
typename T,
typename S>
122 typedef typename Sacado::Promote< L, Sacado::PCE::OrthogPoly<T,S> >::type
127 template <
typename T,
typename S>
132 template <
typename TypeTo,
typename T,
typename S>
135 Sacado::PCE::OrthogPoly<T,S> > {};
138 template <
typename Ordinal,
typename T,
typename S>
141 Sacado::PCE::OrthogPoly<T,S> >
145 template <
typename Ordinal,
typename T,
typename S>
148 Sacado::PCE::OrthogPoly<T,S>,
149 ValueTypeSerializer<Ordinal,T> >
157 Base(expansion,vs) {}
162 #endif // SACADO_PCE_UNIVARIATEHERMITETRAITS_HPP
ValueTypeSerializer(const Teuchos::RCP< expansion_type > &expansion, const Teuchos::RCP< const ValueSerializer > &vs)
Implementation for Teuchos::ScalarTraits for all PCE types.
PCEType::expansion_type expansion_type
Typename of expansion.
Serializer object for all PCE types.
static std::string eval()
ScalarType< typename PCE::OrthogPoly< T, S >::value_type >::type type
ValueType< PCE::OrthogPoly< T, S > >::type value_type
static bool eval(const PCE::OrthogPoly< T, S > &x, const PCE::OrthogPoly< T, S > &y)
ValueType< PCE::OrthogPoly< T, S > >::type value_type
Sacado::PCE::OrthogPoly< T, S > PCEType
PCE::OrthogPoly< T, S >::value_type type
static const value_type & eval(const PCE::OrthogPoly< T, S > &x)
ScalarType< PCE::OrthogPoly< T, S > >::type scalar_type
ValueTypeSerializer< Ordinal, T > ValueSerializer
Implementation for Teuchos::ValueTypeConversionTraits for all PCE types.
Implementation of Teuchos::SerializationTraits for all PCE types.
Base::expansion_type expansion_type
Sacado::PCE::SerializerImp< Ordinal, PCEType, ValueSerializer > Base
static const scalar_type & eval(const PCE::OrthogPoly< T, S > &x)