NumCpp  2.7.0
A Templatized Header Only C++ Implementation of the Python NumPy Library
Utils/powerf.hpp
Go to the documentation of this file.
1 #pragma once
29 
32 
33 #include <cmath>
34 #include <complex>
35 
36 namespace nc
37 {
38  namespace utils
39  {
40  //============================================================================
48  template<typename dtype1, typename dtype2>
49  auto powerf(dtype1 inValue, const dtype2 inPower) noexcept
50  {
52 
53  return std::pow(inValue, inPower);
54  }
55  } // namespace utils
56 } // namespace nc
#define STATIC_ASSERT_ARITHMETIC_OR_COMPLEX(dtype)
Definition: StaticAsserts.hpp:50
auto powerf(dtype1 inValue, const dtype2 inPower) noexcept
Definition: Utils/powerf.hpp:49
Definition: Coordinate.hpp:45