 |
NumCpp
2.4.0
A Templatized Header Only C++ Implementation of the Python NumPy Library
|
Go to the documentation of this file.
30 #if defined(__cpp_lib_math_special_functions) || !defined(NO_USE_BOOST)
36 #ifdef __cpp_lib_math_special_functions
39 #include "boost/math/special_functions/beta.hpp"
42 #include <type_traits>
59 template<
typename dtype1,
typename dtype2>
60 auto beta(dtype1 a, dtype2 b)
65 #ifdef __cpp_lib_math_special_functions
83 template<
typename dtype1,
typename dtype2>
86 NdArray<decltype(
beta(dtype1{ 0 }, dtype2{ 0 }))> returnArray(inArrayB.
shape());
89 [](dtype1 a, dtype2 b) ->
auto
99 #endif // #if defined(__cpp_lib_math_special_functions) || !defined(NO_USE_BOOST)
Shape shape() const noexcept
Definition: NdArrayCore.hpp:4356
#define STATIC_ASSERT_ARITHMETIC(dtype)
Definition: StaticAsserts.hpp:37
auto beta(const NdArray< dtype1 > &inArrayA, const NdArray< dtype2 > &inArrayB)
Definition: Special/beta.hpp:84
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition: NdArrayCore.hpp:71
OutputIt transform(InputIt first, InputIt last, OutputIt destination, UnaryOperation unaryFunction)
Definition: StlAlgorithms.hpp:702
const_iterator cend() const noexcept
Definition: NdArrayCore.hpp:1487
Definition: Coordinate.hpp:44
const_iterator cbegin() const noexcept
Definition: NdArrayCore.hpp:1143
iterator begin() noexcept
Definition: NdArrayCore.hpp:1087
auto beta(dtype1 a, dtype2 b)
Definition: Special/beta.hpp:60