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 29, 2021
1 parent 6115bdd commit e23c84e
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions stan/math/rev/functor/apply_scalar_binary.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,10 @@ inline auto apply_scalar_binary(const T1& x, const T2& y, const F& f) {
* @tparam T1 Type of first argument to which functor is applied.
* @tparam T2 Type of second argument to which functor is applied.
* @tparam F Type of functor to apply.
* @param x Either a var matrix or nested integer std::vector input to which operation is applied.
* @param x Either a var matrix or nested integer std::vector input to which operation is applied.
* @param x Either a var matrix or nested integer std::vector input to which
* operation is applied.
* @param x Either a var matrix or nested integer std::vector 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 @@ -73,21 +75,22 @@ inline auto apply_scalar_binary(const T1& x, const T2& y, const F& f) {
return f(x, y);
}


/**
* Specialisation for use when the one input is an `var_value<Eigen> type and
* the other is a scalar.
*
* @tparam T1 Type of either `var_value<Matrix>` or scalar object to which functor is applied.
* @tparam T2 Type of either `var_value<Matrix>` or scalar object to which functor is applied.
* @tparam T1 Type of either `var_value<Matrix>` or scalar object to which
* functor is applied.
* @tparam T2 Type of either `var_value<Matrix>` or scalar object to which
* functor is applied.
* @tparam F Type of functor to apply.
* @param x Matrix or Scalar input to which operation is applied.
* @param x Matrix or Scalar input to which operation is applied.
* @param f functor to apply to var matrix and scalar inputs.
* @return `var_value<Matrix> object with result of applying functor to inputs.
*
*/
template <typename T1, typename T2, typename F,
template <typename T1, typename T2, typename F,
require_any_stan_scalar_t<T1, T2>* = nullptr,
require_any_var_matrix_t<T1, T2>* = nullptr>
inline auto apply_scalar_binary(const T1& x, const T2& y, const F& f) {
Expand Down

0 comments on commit e23c84e

Please sign in to comment.