30#ifndef NUMCPP_NO_USE_BOOST
34#include "boost/math/special_functions/prime.hpp"
54 if (n > boost::math::max_prime)
57 std::to_string(boost::math::max_prime));
60 return boost::math::prime(n);
79 [](
uint32 inValue) ->
uint32 { return prime(inValue); });
#define THROW_INVALID_ARGUMENT_ERROR(msg)
Definition Error.hpp:37
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
iterator begin() noexcept
Definition NdArrayCore.hpp:1315
Definition airy_ai.hpp:39
uint32 prime(uint32 n)
Definition prime.hpp:52
OutputIt transform(InputIt first, InputIt last, OutputIt destination, UnaryOperation unaryFunction)
Definition StlAlgorithms.hpp:776
std::uint32_t uint32
Definition Types.hpp:40