NumCpp  2.8.0
A Templatized Header Only C++ Implementation of the Python NumPy Library
airy_ai_prime.hpp
Go to the documentation of this file.
1 #pragma once
29 
30 #ifndef NUMCPP_NO_USE_BOOST
31 
32 #include "boost/math/special_functions/airy.hpp"
33 
36 #include "NumCpp/NdArray.hpp"
37 
38 namespace nc
39 {
40  namespace special
41  {
42  //============================================================================
43  // Method Description:
51  template<typename dtype>
52  auto airy_ai_prime(dtype inValue)
53  {
55 
56  return boost::math::airy_ai_prime(inValue);
57  }
58 
59  //============================================================================
60  // Method Description:
68  template<typename dtype>
69  auto airy_ai_prime(const NdArray<dtype>& inArray)
70  {
71  NdArray<decltype(airy_ai_prime(dtype{ 0 }))> returnArray(inArray.shape());
72 
74  inArray.cbegin(),
75  inArray.cend(),
76  returnArray.begin(),
77  [](dtype inValue) -> auto{ return airy_ai_prime(inValue); });
78 
79  return returnArray;
80  }
81  } // namespace special
82 } // namespace nc
83 
84 #endif // #ifndef NUMCPP_NO_USE_BOOST
#define STATIC_ASSERT_ARITHMETIC(dtype)
Definition: StaticAsserts.hpp:37
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition: NdArrayCore.hpp:72
const_iterator cbegin() const noexcept
Definition: NdArrayCore.hpp:1221
Shape shape() const noexcept
Definition: NdArrayCore.hpp:4276
const_iterator cend() const noexcept
Definition: NdArrayCore.hpp:1529
iterator begin() noexcept
Definition: NdArrayCore.hpp:1171
auto airy_ai_prime(dtype inValue)
Definition: airy_ai_prime.hpp:52
auto airy_ai_prime(const NdArray< dtype > &inArray)
Definition: airy_ai_prime.hpp:69
OutputIt transform(InputIt first, InputIt last, OutputIt destination, UnaryOperation unaryFunction)
Definition: StlAlgorithms.hpp:784
Definition: Coordinate.hpp:45