NumCpp  2.18.0
A Templatized Header Only C++ Implementation of the Python NumPy Library
Loading...
Searching...
No Matches
cyclic_hankel_1.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/hankel.hpp"
33
35#include "NumCpp/NdArray.hpp"
36
37namespace nc::special
38{
39 //============================================================================
40 // Method Description:
48 template<typename dtype1, typename dtype2>
49 auto cyclic_hankel_1(dtype1 inV, dtype2 inX)
50 {
53
54 return boost::math::cyl_hankel_1(inV, inX);
55 }
56
57 //============================================================================
58 // Method Description:
66 template<typename dtype1, typename dtype2>
67 auto cyclic_hankel_1(dtype1 inV, const NdArray<dtype2>& inX)
68 {
69 NdArray<decltype(cyclic_hankel_1(dtype1{ 0 }, dtype2{ 0 }))> returnArray(inX.shape());
70
72 inX.cend(),
73 returnArray.begin(),
74 [inV](dtype2 x) -> auto { return cyclic_hankel_1(inV, x); });
75
76 return returnArray;
77 }
78} // namespace nc::special
79
80#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 cyclic_hankel_1(dtype1 inV, dtype2 inX)
Definition cyclic_hankel_1.hpp:49
OutputIt transform(InputIt first, InputIt last, OutputIt destination, UnaryOperation unaryFunction)
Definition StlAlgorithms.hpp:776