Skip to content

Commit 7157ac5

Browse files
committed
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
1 parent 86564a3 commit 7157ac5

3 files changed

Lines changed: 7 additions & 8 deletions

File tree

stan/math/fwd/fun/trace_dot.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ namespace math {
2626
template <typename EigMat1, typename EigMat2,
2727
require_all_eigen_t<EigMat1, EigMat2>* = nullptr,
2828
require_any_vt_fvar<EigMat1, EigMat2>* = nullptr>
29-
inline return_type_t<EigMat1, EigMat2> trace_dot(EigMat1&& A,
30-
EigMat2&& B) {
29+
inline return_type_t<EigMat1, EigMat2> trace_dot(EigMat1&& A, EigMat2&& B) {
3130
check_size_match("trace_dot", "A.cols()", A.cols(), "B.rows()", B.rows());
3231
check_size_match("trace_dot", "A.rows()", A.rows(), "B.cols()", B.cols());
3332
return trace(multiply(std::forward<EigMat1>(A), std::forward<EigMat2>(B)));

stan/math/prim/fun/trace.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ namespace math {
2020
template <typename T, require_eigen_t<T>* = nullptr,
2121
require_not_st_var<T>* = nullptr>
2222
inline auto trace(T&& m) {
23-
return make_holder([](auto&& m_) {
24-
return m_.trace();
25-
}, std::forward<T>(m));
23+
return make_holder([](auto&& m_) { return m_.trace(); }, std::forward<T>(m));
2624
}
2725

2826
} // namespace math

stan/math/prim/fun/trace_dot.hpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,11 @@ template <typename EigMat1, typename EigMat2,
3030
inline auto trace_dot(EigMat1&& A, EigMat2&& B) {
3131
check_size_match("trace_dot", "A.cols()", A.cols(), "B.rows()", B.rows());
3232
check_size_match("trace_dot", "A.rows()", A.rows(), "B.cols()", B.cols());
33-
return make_holder([](auto&& A_, auto&& B_) {
34-
return A_.cwiseProduct(B_.transpose()).sum();
35-
}, std::forward<EigMat1>(A), std::forward<EigMat2>(B));
33+
return make_holder(
34+
[](auto&& A_, auto&& B_) {
35+
return A_.cwiseProduct(B_.transpose()).sum();
36+
},
37+
std::forward<EigMat1>(A), std::forward<EigMat2>(B));
3638
}
3739

3840
} // namespace math

0 commit comments

Comments
 (0)