32#if defined(__cpp_lib_math_special_functions) || !defined(NUMCPP_NO_USE_BOOST)
38#ifndef __cpp_lib_math_special_functions
39#include "boost/math/special_functions/beta.hpp"
56 template<
typename dtype1,
typename dtype2>
57 auto beta(dtype1 a, dtype2 b)
62#ifdef __cpp_lib_math_special_functions
63 return std::beta(a, b);
65 return boost::math::beta(a, b);
79 template<
typename dtype1,
typename dtype2>
82 NdArray<
decltype(
beta(dtype1{ 0 }, dtype2{ 0 }))> returnArray(inArrayB.
shape());
88 [](dtype1 a, dtype2 b) ->
auto { return beta(a, b); });
#define STATIC_ASSERT_ARITHMETIC(dtype)
Definition StaticAsserts.hpp:39
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition NdArrayCore.hpp:139
const_iterator cbegin() const noexcept
Definition NdArrayCore.hpp:1365
const Shape & shape() const noexcept
Definition NdArrayCore.hpp:4591
const_iterator cend() const noexcept
Definition NdArrayCore.hpp:1673
Definition airy_ai.hpp:39
auto beta(dtype1 a, dtype2 b)
Definition Special/beta.hpp:57
OutputIt transform(InputIt first, InputIt last, OutputIt destination, UnaryOperation unaryFunction)
Definition StlAlgorithms.hpp:776