|
6 | 6 |
|
7 | 7 | namespace stan {
|
8 | 8 | namespace test {
|
9 |
| - template <typename... Types> |
10 |
| - using check_fvar_or_arithmetic = math::conjunction<stan::is_fvar_or_arithmetic<Types>...>; |
11 |
| -} |
| 9 | +template <typename... Types> |
| 10 | +using check_fvar_or_arithmetic |
| 11 | + = math::conjunction<stan::is_fvar_or_arithmetic<Types>...>; |
12 | 12 | }
|
| 13 | +} // namespace stan |
13 | 14 |
|
14 | 15 | TEST(MathMetaRevScal, is_fvar_or_arithmetic_simple) {
|
15 | 16 | using stan::is_fvar_or_arithmetic;
|
16 | 17 | EXPECT_TRUE(stan::is_fvar_or_arithmetic<stan::math::fvar<double>>::value);
|
17 | 18 | EXPECT_TRUE(stan::is_fvar_or_arithmetic<stan::math::fvar<double>&>::value);
|
18 | 19 | EXPECT_TRUE(stan::is_fvar_or_arithmetic<double>::value);
|
19 | 20 | EXPECT_TRUE(stan::is_fvar_or_arithmetic<double&>::value);
|
20 |
| - bool temp |
21 |
| - = stan::test::check_fvar_or_arithmetic<stan::math::fvar<double>, std::vector<stan::math::fvar<double>>, |
22 |
| - stan::math::fvar<double>, stan::math::fvar<double>, stan::math::fvar<double>, |
23 |
| - stan::math::fvar<double>>::value; |
| 21 | + bool temp = stan::test::check_fvar_or_arithmetic< |
| 22 | + stan::math::fvar<double>, std::vector<stan::math::fvar<double>>, |
| 23 | + stan::math::fvar<double>, stan::math::fvar<double>, |
| 24 | + stan::math::fvar<double>, stan::math::fvar<double>>::value; |
24 | 25 | EXPECT_FALSE(temp);
|
25 |
| - temp = stan::test::check_fvar_or_arithmetic<std::vector<stan::math::fvar<double>>, stan::math::fvar<double>, |
26 |
| - std::vector<stan::math::fvar<double> const*>>::value; |
| 26 | + temp = stan::test::check_fvar_or_arithmetic< |
| 27 | + std::vector<stan::math::fvar<double>>, stan::math::fvar<double>, |
| 28 | + std::vector<stan::math::fvar<double> const*>>::value; |
27 | 29 | EXPECT_FALSE(temp);
|
28 |
| - temp = stan::test::check_fvar_or_arithmetic<std::vector<stan::math::fvar<double>>, stan::math::fvar<double>, |
29 |
| - std::vector<stan::math::fvar<double>>>::value; |
| 30 | + temp = stan::test::check_fvar_or_arithmetic< |
| 31 | + std::vector<stan::math::fvar<double>>, stan::math::fvar<double>, |
| 32 | + std::vector<stan::math::fvar<double>>>::value; |
30 | 33 | EXPECT_FALSE(temp);
|
31 | 34 | }
|
0 commit comments