NumCpp  2.1.0
A C++ implementation of the Python Numpy library
degrees.hpp
Go to the documentation of this file.
1 #pragma once
30 
32 #include "NumCpp/NdArray.hpp"
33 
34 namespace nc
35 {
36  //============================================================================
37  // Method Description:
47  template<typename dtype>
48  constexpr auto degrees(dtype inValue) noexcept
49  {
50  return rad2deg(inValue);
51  }
52 
53  //============================================================================
54  // Method Description:
64  template<typename dtype>
65  auto degrees(const NdArray<dtype>& inArray)
66  {
67  return rad2deg(inArray);
68  }
69 } // namespace nc
nc::NdArray< dtype >
NdArray.hpp
nc::rad2deg
constexpr auto rad2deg(dtype inValue) noexcept
Definition: rad2deg.hpp:51
nc
Definition: Coordinate.hpp:45
nc::degrees
constexpr auto degrees(dtype inValue) noexcept
Definition: degrees.hpp:48
rad2deg.hpp