34#ifndef NUMCPP_NO_USE_BOOST
35#include "boost/math/special_functions/factorials.hpp"
51#ifndef NUMCPP_NO_USE_BOOST
52 if (inValue <= boost::math::max_factorial<double>::value)
54 return boost::math::factorial<double>(inValue);
57 return std::numeric_limits<double>::infinity();
60 for (
uint32 i = 2; i <= inValue; ++i)
62 result *=
static_cast<double>(i);
83 [](
uint32 inValue) ->
double { return factorial(inValue); });
const_iterator cbegin() const noexcept
Definition: NdArrayCore.hpp:1365
const Shape & shape() const noexcept
Definition: NdArrayCore.hpp:4511
const_iterator cend() const noexcept
Definition: NdArrayCore.hpp:1673
iterator begin() noexcept
Definition: NdArrayCore.hpp:1315
Definition: airy_ai.hpp:39
double factorial(uint32 inValue)
Definition: factorial.hpp:49
OutputIt transform(InputIt first, InputIt last, OutputIt destination, UnaryOperation unaryFunction)
Definition: StlAlgorithms.hpp:775
std::uint32_t uint32
Definition: Types.hpp:40