NumCpp  2.12.1
A Templatized Header Only C++ Implementation of the Python NumPy Library
degrees.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 degrees(dtype inValue) noexcept
46 {
47 return rad2deg(inValue);
48 }
49
50 //============================================================================
51 // Method Description:
59 template<typename dtype>
60 auto degrees(const NdArray<dtype>& inArray)
61 {
62 return rad2deg(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 degrees(dtype inValue) noexcept
Definition: degrees.hpp:45
constexpr auto rad2deg(dtype inValue) noexcept
Definition: rad2deg.hpp:48