math.hpp 4.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. //---------------------------------------------------------------------------//
  2. // Copyright (c) 2013 Kyle Lutz <kyle.r.lutz@gmail.com>
  3. //
  4. // Distributed under the Boost Software License, Version 1.0
  5. // See accompanying file LICENSE_1_0.txt or copy at
  6. // http://www.boost.org/LICENSE_1_0.txt
  7. //
  8. // See http://boostorg.github.com/compute for more information.
  9. //---------------------------------------------------------------------------//
  10. #ifndef BOOST_COMPUTE_FUNCTIONAL_MATH_HPP
  11. #define BOOST_COMPUTE_FUNCTIONAL_MATH_HPP
  12. #include <boost/compute/functional/detail/macros.hpp>
  13. namespace boost {
  14. namespace compute {
  15. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(acos, T (T), class T)
  16. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(acosh, T (T), class T)
  17. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(acospi, T (T), class T)
  18. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(asin, T (T), class T)
  19. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(asinh, T (T), class T)
  20. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(asinpi, T (T), class T)
  21. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(atan, T (T), class T)
  22. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(atan2, T (T, T), class T)
  23. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(atanh, T (T), class T)
  24. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(atanpi, T (T), class T)
  25. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(atan2pi, T (T, T), class T)
  26. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(cbrt, T (T), class T)
  27. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(ceil, T (T), class T)
  28. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(copysign, T (T, T), class T)
  29. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(cos, T (T), class T)
  30. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(cosh, T (T), class T)
  31. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(cospi, T (T), class T)
  32. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(erf, T (T), class T)
  33. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(erfc, T (T), class T)
  34. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(exp, T (T), class T)
  35. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(exp2, T (T), class T)
  36. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(exp10, T (T), class T)
  37. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(expm1, T (T), class T)
  38. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(fabs, T (T), class T)
  39. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(fdim, T (T, T), class T)
  40. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(floor, T (T), class T)
  41. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(fma, T (T, T, T), class T)
  42. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(fmax, T (T, T), class T)
  43. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(fmin, T (T, T), class T)
  44. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(fmod, T (T, T), class T)
  45. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(hypot, T (T, T), class T)
  46. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(ilogb, T (T), class T)
  47. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(lgamma, T (T), class T)
  48. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(log, T (T), class T)
  49. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(log2, T (T), class T)
  50. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(log10, T (T), class T)
  51. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(log1p, T (T), class T)
  52. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(logb, T (T), class T)
  53. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(mad, T (T, T, T), class T)
  54. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(nextafter, T (T, T), class T)
  55. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(pow, T (T, T), class T)
  56. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(pown, T (T, T), class T)
  57. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(powr, T (T, T), class T)
  58. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(remainder, T (T, T), class T)
  59. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(rint, T (T), class T)
  60. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(rootn, T (T), class T)
  61. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(round, T (T), class T)
  62. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(rsqrt, T (T), class T)
  63. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(sin, T (T), class T)
  64. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(sinh, T (T), class T)
  65. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(sinpi, T (T), class T)
  66. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(sqrt, T (T), class T)
  67. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(tan, T (T), class T)
  68. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(tanh, T (T), class T)
  69. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(tanpi, T (T), class T)
  70. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(tgamma, T (T), class T)
  71. BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(trunc, T (T), class T)
  72. } // end compute namespace
  73. } // end boost namespace
  74. #endif // BOOST_COMPUTE_FUNCTIONAL_MATH_HPP