Skip to content

Commit f0d6a83

Browse files
committed
[Jenkins] auto-formatting by clang-format version 6.0.0-1ubuntu2~16.04.1 (tags/RELEASE_600/final)
1 parent 2895732 commit f0d6a83

File tree

2 files changed

+18
-15
lines changed

2 files changed

+18
-15
lines changed

stan/math/prim/meta/is_fvar_or_arithmetic.hpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ namespace stan {
1515
* Extends std::true_type if all the provided types are either fvar or
1616
* an arithmetic type, extends std::false_type otherwise.
1717
*/
18-
template <typename T>
19-
using is_fvar_or_arithmetic
20-
= bool_constant<std::is_arithmetic<std::decay_t<T>>::value
21-
|| is_fvar<std::decay_t<T>>::value>;
18+
template <typename T>
19+
using is_fvar_or_arithmetic
20+
= bool_constant<std::is_arithmetic<std::decay_t<T>>::value
21+
|| is_fvar<std::decay_t<T>>::value>;
2222

2323
STAN_ADD_REQUIRE_UNARY(fvar_or_arithmetic, is_fvar_or_arithmetic,
2424
require_stan_scalar_real);

test/unit/math/fwd/meta/is_fvar_or_arithmetic_test.cpp

+14-11
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,29 @@
66

77
namespace stan {
88
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>...>;
1212
}
13+
} // namespace stan
1314

1415
TEST(MathMetaRevScal, is_fvar_or_arithmetic_simple) {
1516
using stan::is_fvar_or_arithmetic;
1617
EXPECT_TRUE(stan::is_fvar_or_arithmetic<stan::math::fvar<double>>::value);
1718
EXPECT_TRUE(stan::is_fvar_or_arithmetic<stan::math::fvar<double>&>::value);
1819
EXPECT_TRUE(stan::is_fvar_or_arithmetic<double>::value);
1920
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;
2425
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;
2729
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;
3033
EXPECT_FALSE(temp);
3134
}

0 commit comments

Comments
 (0)