Skip to content

Commit

Permalink
Workaround for header cycle
Browse files Browse the repository at this point in the history
  • Loading branch information
mborland committed Sep 5, 2024
1 parent b7fe92b commit 26f5e04
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions include/boost/math/special_functions/detail/t_distribution_inv.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,19 @@ BOOST_MATH_GPU_ENABLED inline T find_ibeta_inv_from_t_dist(T a, T p, T /*q*/, T*
return df / (df + t * t);
}

// NVRTC requires this forward decl because there is a header cycle between here and ibeta_inverse.hpp
#ifdef BOOST_MATH_HAS_NVRTC

} // Namespace detail

template <class T1, class T2, class T3, class T4, class Policy>
BOOST_MATH_GPU_ENABLED inline typename tools::promote_args<T1, T2, T3, T4>::type
ibeta_inv(T1 a, T2 b, T3 p, T4* py, const Policy& pol);

namespace detail {

#endif

template <class T, class Policy>
BOOST_MATH_GPU_ENABLED inline T fast_students_t_quantile_imp(T df, T p, const Policy& pol, const boost::math::false_type*)
{
Expand Down

0 comments on commit 26f5e04

Please sign in to comment.