NumCpp  2.5.1
A Templatized Header Only C++ Implementation of the Python NumPy Library
Utils/cube.hpp
Go to the documentation of this file.
1 #pragma once
29 
31 
32 namespace nc
33 {
34  namespace utils
35  {
36  //============================================================================
43  template<typename dtype>
44  constexpr dtype cube(dtype inValue) noexcept
45  {
47 
48  return inValue * inValue * inValue;
49  }
50  } // namespace utils
51 } // namespace nc
#define STATIC_ASSERT_ARITHMETIC_OR_COMPLEX(dtype)
Definition: StaticAsserts.hpp:50
constexpr dtype cube(dtype inValue) noexcept
Definition: Utils/cube.hpp:44
Definition: Coordinate.hpp:45