10 #ifndef TRAITSTESTS_HPP
11 #define TRAITSTESTS_HPP
13 #include <type_traits>
24 template <
class ADType>
48 typedef decltype(this->ad1) ad1_t;
49 typedef decltype(this->ad2) ad2_t;
51 bool same = std::is_same< typename Sacado::ScalarType<ad1_t>::type,
double >
::value;
54 same = std::is_same< typename Sacado::ScalarType<ad2_t>::type,
double >
::value;
59 typedef decltype(this->ad1) ad1_t;
60 typedef decltype(this->ad2) ad2_t;
62 bool same = std::is_same< typename Sacado::ValueType<ad1_t>::type,
double >
::value;
65 same = std::is_same< typename Sacado::ValueType<ad2_t>::type,ad1_t >
::value;
70 typedef decltype(this->ad1) ad1_t;
71 typedef decltype(this->ad2) ad2_t;
78 typedef decltype(this->ad1) ad1_t;
79 typedef decltype(this->ad2) ad2_t;
86 typedef decltype(this->ad1) ad1_t;
87 typedef decltype(this->ad2) ad2_t;
89 double val = this->urand.number();
98 typedef decltype(this->ad1) ad1_t;
99 typedef decltype(this->ad2) ad2_t;
101 double val = this->urand.number();
110 typedef decltype(this->ad1) ad1_t;
111 typedef decltype(this->ad2) ad2_t;
132 #endif // TRAITSTESTS_HPP
#define TYPED_TEST_P(SuiteName, TestName)
static std::string eval()
Base template specification for ScalarValue.
Sacado::mpl::apply< ADType, double >::type ad1_t
Base template specification for IsADType.
Base template specification for Value.
F::template apply< A1, A2, A3, A4, A5 >::type type
#define ASSERT_TRUE(condition)
Sacado::mpl::apply< ADType, ad1_t >::type ad2_t
Sacado::Random< double > urand
Base template specification for IsScalarType.
#define TYPED_TEST_SUITE_P(SuiteName)
#define REGISTER_TYPED_TEST_SUITE_P(SuiteName,...)