test_legendre_hooks.hpp 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // (C) Copyright John Maddock 2006.
  2. // Use, modification and distribution are subject to the
  3. // Boost Software License, Version 1.0. (See accompanying file
  4. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. #ifndef BOOST_MATH_TEST_LEGENDRE_OTHER_HOOKS_HPP
  6. #define BOOST_MATH_TEST_LEGENDRE_OTHER_HOOKS_HPP
  7. #ifdef TEST_GSL
  8. #include <gsl/gsl_sf_legendre.h>
  9. namespace other{
  10. inline float legendre_p(int l, float a)
  11. { return (float)gsl_sf_legendre_Pl (l, a); }
  12. inline double legendre_p(int l, double a)
  13. { return gsl_sf_legendre_Pl (l, a); }
  14. inline long double legendre_p(int l, long double a)
  15. { return gsl_sf_legendre_Pl (l, a); }
  16. inline float legendre_q(int l, float a)
  17. { return (float)gsl_sf_legendre_Ql (l, a); }
  18. inline double legendre_q(int l, double a)
  19. { return gsl_sf_legendre_Ql (l, a); }
  20. inline long double legendre_q(int l, long double a)
  21. { return gsl_sf_legendre_Ql (l, a); }
  22. }
  23. #define TEST_OTHER
  24. #endif
  25. #ifdef TEST_OTHER
  26. namespace other{
  27. boost::math::concepts::real_concept legendre_p(int, boost::math::concepts::real_concept){ return 0; }
  28. boost::math::concepts::real_concept legendre_q(int, boost::math::concepts::real_concept){ return 0; }
  29. }
  30. #endif
  31. #endif