30 #ifndef SACADO_SCALARFLOPCOUNTERTRAITS_HPP
31 #define SACADO_SCALARFLOPCOUNTERTRAITS_HPP
37 namespace FlopCounterPack {
38 template <
typename T>
class ScalarFlopCounter;
48 template <typename ScalarT>
49 struct
ScalarType< FlopCounterPack::ScalarFlopCounter<ScalarT> > {
54 template <
typename ScalarT>
55 struct ValueType< FlopCounterPack::ScalarFlopCounter<ScalarT> > {
60 template <
typename ScalarT>
61 struct IsADType< FlopCounterPack::ScalarFlopCounter<ScalarT> > {
66 template <
typename ScalarT>
67 struct IsScalarType< FlopCounterPack::ScalarFlopCounter<ScalarT> > {
68 static const bool value =
false;
72 template <
typename ScalarT>
73 struct Value< FlopCounterPack::ScalarFlopCounter<ScalarT> > {
80 template <
typename ScalarT>
81 struct ScalarValue< FlopCounterPack::ScalarFlopCounter<ScalarT> > {
89 template <
typename ScalarT>
90 struct StringName< FlopCounterPack::ScalarFlopCounter<ScalarT> > {
91 static std::string
eval() {
92 return std::string(
"Sacado::FlopCounterPack::ScalarFlopCounter< ") +
99 template <
typename ScalarT>
106 #endif // SACADO_SCALARFLOPCOUNTERTRAITS_HPP
static SACADO_INLINE_FUNCTION const T & eval(const T &x)
static std::string eval()
static std::string eval()
ScalarType< ScalarT >::type type
Base template specification for ScalarValue.
Base template specification for ScalarType.
Base template specification for string names of types.
ValueType< FlopCounterPack::ScalarFlopCounter< ScalarT > >::type value_type
Base template specification for IsADType.
const T & val() const
Return the current value.
Base template specification for Value.
#define SACADO_AD_PROMOTE_SPEC(NS, AD)
ValueType< FlopCounterPack::ScalarFlopCounter< ScalarT > >::type value_type
static const value_type & eval(const FlopCounterPack::ScalarFlopCounter< ScalarT > &x)
Templated flop counter class.
static const scalar_type & eval(const FlopCounterPack::ScalarFlopCounter< ScalarT > &x)
Base template specification for IsScalarType.
ScalarType< FlopCounterPack::ScalarFlopCounter< ScalarT > >::type scalar_type
Base template specification for ValueType.
Base template specification for testing whether type is statically sized.