Skip to content

Commit

Permalink
boost policy
Browse files Browse the repository at this point in the history
  • Loading branch information
andrjohns committed Jan 17, 2025
1 parent 444c2e8 commit 609b4d5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion stan/math/prim/fun/owens_t.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#define STAN_MATH_PRIM_FUN_OWENS_T_HPP

#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/fun/boost_policy.hpp>
#include <stan/math/prim/functor/apply_scalar_binary.hpp>
#include <boost/math/special_functions/owens_t.hpp>

Expand Down Expand Up @@ -55,7 +56,9 @@ namespace math {
* @param a Second argument
* @return Owen's T function applied to the arguments.
*/
inline double owens_t(double h, double a) { return boost::math::owens_t(h, a); }
inline double owens_t(double h, double a) {
return boost::math::owens_t(h, a, boost_policy_t<>());
}

/**
* Enables the vectorized application of the owens_t
Expand Down

0 comments on commit 609b4d5

Please sign in to comment.