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/laguerre.hpp"
54 template<
typename dtype>
59#ifdef __cpp_lib_math_special_functions
60 return std::laguerre(n,
static_cast<double>(x));
62 return boost::math::laguerre(n,
static_cast<double>(x));
77 template<
typename dtype>
82#ifdef __cpp_lib_math_special_functions
83 return std::assoc_laguerre(n, m,
static_cast<double>(x));
85 return boost::math::laguerre(n, m,
static_cast<double>(x));
99 template<
typename dtype>
104 const auto function = [n](dtype x) ->
double {
return laguerre(n, x); };
122 template<
typename dtype>
127 const auto function = [n, m](dtype x) ->
double {
return laguerre(n, m, x); };
#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
iterator begin() noexcept
Definition NdArrayCore.hpp:1315
Definition chebyshev_t.hpp:39
double laguerre(uint32 n, dtype x)
Definition laguerre.hpp:55
OutputIt transform(InputIt first, InputIt last, OutputIt destination, UnaryOperation unaryFunction)
Definition StlAlgorithms.hpp:776
std::uint32_t uint32
Definition Types.hpp:40