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