Skip to content

Commit

Permalink
[Jenkins] auto-formatting by clang-format version 6.0.0-1ubuntu2~16.0…
Browse files Browse the repository at this point in the history
…4.1 (tags/RELEASE_600/final)
  • Loading branch information
stan-buildbot committed Jun 10, 2021
1 parent 86a783a commit 9f65ddf
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 9 deletions.
3 changes: 2 additions & 1 deletion stan/math/rev/fun/bessel_first_kind.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ inline var bessel_first_kind(int v, const var& a) {
}

/**
* Overload with `var_value<Matrix>` for `int`, `std::vector<int>`, and `std::vector<std::vector<int>>`
* Overload with `var_value<Matrix>` for `int`, `std::vector<int>`, and
* `std::vector<std::vector<int>>`
*/
template <typename T1, typename T2, require_st_integral<T1>* = nullptr,
require_eigen_t<T2>* = nullptr>
Expand Down
3 changes: 2 additions & 1 deletion stan/math/rev/fun/bessel_second_kind.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ inline var bessel_second_kind(int v, const var& a) {
}

/**
* Overload with `var_value<Matrix>` for `int`, `std::vector<int>`, and `std::vector<std::vector<int>>`
* Overload with `var_value<Matrix>` for `int`, `std::vector<int>`, and
* `std::vector<std::vector<int>>`
*/
template <typename T1, typename T2, require_st_integral<T1>* = nullptr,
require_eigen_t<T2>* = nullptr>
Expand Down
3 changes: 2 additions & 1 deletion stan/math/rev/fun/binary_log_loss.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ inline auto binary_log_loss(int y, const var_value<Mat>& y_hat) {
}

/**
* Overload with `var_value<Matrix>` for `std::vector<int>` and `std::vector<std::vector<int>>`
* Overload with `var_value<Matrix>` for `std::vector<int>` and
* `std::vector<std::vector<int>>`
*/
template <typename StdVec, typename Mat, require_eigen_t<Mat>* = nullptr,
require_st_integral<StdVec>* = nullptr>
Expand Down
13 changes: 8 additions & 5 deletions stan/math/rev/functor/apply_scalar_binary.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ namespace math {
/**
* Specialisation for use with combinations of
* `Eigen::Matrix` and `var_value<Eigen::Matrix>` inputs.
* Eigen's binaryExpr framework is used for more efficient indexing of both row- and column-major inputs without separate loops.
* Eigen's binaryExpr framework is used for more efficient indexing of both row-
* and column-major inputs without separate loops.
*
* @tparam T1 Type of first argument to which functor is applied.
* @tparam T2 Type of second argument to which functor is applied.
Expand Down Expand Up @@ -100,7 +101,8 @@ inline auto apply_scalar_binary(const T1& x, const T2& y, const F& f) {
* @tparam T2 Type of second argument to which functor is applied.
* @tparam F Type of functor to apply.
* @param x Nested integer std::vector input to which operation is applied.
* @param y var value with inner Eigen matrix input to which operation is applied.
* @param y var value with inner Eigen matrix input to which operation is
* applied.
* @param f functor to apply to inputs.
* @return Eigen object with result of applying functor to inputs.
*/
Expand All @@ -113,8 +115,8 @@ inline auto apply_scalar_binary(const T1& x, const T2& y, const F& f) {
}

/**
* Specialisation for use when the first input is an `var_value<Eigen> type and the second
* is a scalar.
* Specialisation for use when the first input is an `var_value<Eigen> type and
* the second is a scalar.
*
* @tparam T1 Type of `var_value<Matrix>` object to which functor is applied.
* @tparam T2 Type of scalar to which functor is applied.
Expand Down Expand Up @@ -144,7 +146,8 @@ inline auto apply_scalar_binary(const T1& x, const T2& y, const F& f) {
* @param x Scalar input to which operation is applied.
* @param y var matrix input to which operation is applied.
* @param f functor to apply to Eigen and scalar inputs.
* @return var value with inner Eigen type with result of applying functor to inputs.
* @return var value with inner Eigen type with result of applying functor to
* inputs.
*
* Note: The return expresssion needs to be evaluated, otherwise the captured
* function and scalar fall out of scope.
Expand Down
1 change: 0 additions & 1 deletion test/unit/math/mix/fun/beta2_test.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include <test/unit/math/test_ad.hpp>


TEST(mathMixScalFun, beta_varmat_vectorized) {
auto f = [](const auto& x1, const auto& x2) {
using stan::math::beta;
Expand Down

0 comments on commit 9f65ddf

Please sign in to comment.