We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8e7afa commit 80ada75Copy full SHA for 80ada75
1 file changed
stan/math/prim/fun/promote_scalar.hpp
@@ -14,9 +14,9 @@ namespace math {
14
template <typename PromotionScalars, typename UnPromotedTypes>
15
inline constexpr auto promote_scalar(UnPromotedTypes&& x) {
16
using unpromoted_scalar_t = scalar_type_t<UnPromotedTypes>;
17
- constexpr bool both_tuples = is_tuple_v<PromotionScalars> &&
18
- is_tuple_v<UnPromotedTypes>;
19
- if constexpr (std::is_same_v<PromotionScalars,unpromoted_scalar_t>) {
+ constexpr bool both_tuples
+ = is_tuple_v<PromotionScalars> && is_tuple_v<UnPromotedTypes>;
+ if constexpr (std::is_same_v<PromotionScalars, unpromoted_scalar_t>) {
20
return std::forward<UnPromotedTypes>(x);
21
} else if constexpr (both_tuples) {
22
return index_apply<std::tuple_size<std::decay_t<UnPromotedTypes>>::value>(
0 commit comments