NumCpp  2.5.1
A Templatized Header Only C++ Implementation of the Python NumPy Library
radians.hpp
Go to the documentation of this file.
1 #pragma once
29 
31 #include "NumCpp/NdArray.hpp"
32 
33 namespace nc
34 {
35  //============================================================================
36  // Method Description:
46  template<typename dtype>
47  constexpr auto radians(dtype inValue) noexcept
48  {
49  return deg2rad(inValue);
50  }
51 
52  //============================================================================
53  // Method Description:
63  template<typename dtype>
64  auto radians(const NdArray<dtype>& inArray)
65  {
66  return deg2rad(inArray);
67  }
68 } // namespace nc
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition: NdArrayCore.hpp:72
Definition: Coordinate.hpp:45
constexpr auto deg2rad(dtype inValue) noexcept
Definition: deg2rad.hpp:49
constexpr auto radians(dtype inValue) noexcept
Definition: radians.hpp:47