diff --git a/stan/math/prim/fun/all.hpp b/stan/math/prim/fun/all.hpp index e4c62aeb56e..34b603e8512 100644 --- a/stan/math/prim/fun/all.hpp +++ b/stan/math/prim/fun/all.hpp @@ -17,7 +17,9 @@ namespace math { * @return The input unchanged */ template * = nullptr> -constexpr inline T all(T x) { return x; } +constexpr inline T all(T x) { + return x; +} /** * Return true if all values in the input are true. diff --git a/stan/math/prim/fun/any.hpp b/stan/math/prim/fun/any.hpp index f14bdc140ea..8e97a93e9b0 100644 --- a/stan/math/prim/fun/any.hpp +++ b/stan/math/prim/fun/any.hpp @@ -17,7 +17,9 @@ namespace math { * @return The input unchanged */ template * = nullptr> -constexpr inline T any(T x) { return x; } +constexpr inline T any(T x) { + return x; +} /** * Return true if any values in the input are true. diff --git a/stan/math/prim/fun/select.hpp b/stan/math/prim/fun/select.hpp index 86cba879d42..cba1c0dd939 100644 --- a/stan/math/prim/fun/select.hpp +++ b/stan/math/prim/fun/select.hpp @@ -56,7 +56,7 @@ inline T_true_plain select(const bool c, const T_true y_true, check_matching_dims("select", "left hand side", y_true, "right hand side", y_false); return c ? T_true_plain(std::forward(y_true)) - : T_true_plain(std::forward(y_false)); + : T_true_plain(std::forward(y_false)); } /** @@ -148,8 +148,10 @@ template * = nullptr, require_all_stan_scalar_t* = nullptr> inline auto select(const T_bool c, const T_true y_true, const T_false y_false) { - return c.unaryExpr( - [y_true, y_false](bool cond) { return cond ? y_true : y_false; }).eval(); + return c + .unaryExpr( + [y_true, y_false](bool cond) { return cond ? y_true : y_false; }) + .eval(); } /** @@ -169,7 +171,7 @@ template * = nullptr> inline auto select(const T_bool c, const T_true y_true, const T_false y_false) { check_consistent_sizes("select", "boolean", c, "left hand side", y_true, - "right hand side", y_false); + "right hand side", y_false); return c.select(y_true, y_false).eval(); }