From fc6bc006ddba04e5cdfff39c976e65c4867bf6cb Mon Sep 17 00:00:00 2001 From: Matt Borland Date: Wed, 14 Aug 2024 11:52:32 -0400 Subject: [PATCH] Add NVRTC support to the arcsine dist --- include/boost/math/distributions/arcsine.hpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/include/boost/math/distributions/arcsine.hpp b/include/boost/math/distributions/arcsine.hpp index d921e1145..899bfb1b2 100644 --- a/include/boost/math/distributions/arcsine.hpp +++ b/include/boost/math/distributions/arcsine.hpp @@ -30,15 +30,21 @@ #ifndef BOOST_MATH_DIST_ARCSINE_HPP #define BOOST_MATH_DIST_ARCSINE_HPP -#include #include #include -#include #include // complements. #include // error checks. #include - #include // isnan. +#include +#include + +#ifndef BOOST_MATH_HAS_NVRTC +#include +#include +#include +#include // For std::domain_error. +#endif #if defined (BOOST_MSVC) # pragma warning(push) @@ -46,9 +52,6 @@ // in domain_error_imp in error_handling. #endif -#include -#include // For std::domain_error. - namespace boost { namespace math