NumCpp  2.18.0
A Templatized Header Only C++ Implementation of the Python NumPy Library
Loading...
Searching...
No Matches
bessel_yn_prime.hpp
Go to the documentation of this file.
1
28#pragma once
29
30#ifndef NUMCPP_NO_USE_BOOST
31
32#include "boost/math/special_functions/bessel.hpp"
33
36#include "NumCpp/NdArray.hpp"
37
38namespace nc::special
39{
40 //============================================================================
41 // Method Description:
49 template<typename dtype1, typename dtype2>
50 auto bessel_yn_prime(dtype1 inV, dtype2 inX)
51 {
54
55 return boost::math::cyl_neumann_prime(inV, inX);
56 }
57
58 //============================================================================
59 // Method Description:
67 template<typename dtype1, typename dtype2>
68 auto bessel_yn_prime(dtype1 inV, const NdArray<dtype2>& inArrayX)
69 {
70 NdArray<decltype(bessel_yn_prime(dtype1{ 0 }, dtype2{ 0 }))> returnArray(inArrayX.shape());
71
73 inArrayX.cend(),
74 returnArray.begin(),
75 [inV](dtype2 inX) -> auto { return bessel_yn_prime(inV, inX); });
76
77 return returnArray;
78 }
79} // namespace nc::special
80
81#endif // #ifndef NUMCPP_NO_USE_BOOST
#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:135
const_iterator cbegin() const noexcept
Definition NdArrayCore.hpp:1361
const Shape & shape() const noexcept
Definition NdArrayCore.hpp:4587
const_iterator cend() const noexcept
Definition NdArrayCore.hpp:1669
Definition airy_ai.hpp:39
auto bessel_yn_prime(dtype1 inV, dtype2 inX)
Definition bessel_yn_prime.hpp:50
OutputIt transform(InputIt first, InputIt last, OutputIt destination, UnaryOperation unaryFunction)
Definition StlAlgorithms.hpp:776