NumCpp  1.0
A C++ implementation of the Python Numpy library
Utils/cube.hpp
Go to the documentation of this file.
1 #pragma once
30 
32 
33 namespace nc
34 {
35  namespace utils
36  {
37  //============================================================================
44  template<typename dtype>
45  constexpr dtype cube(dtype inValue) noexcept
46  {
48 
49  return inValue * inValue * inValue;
50  }
51  }
52 }
StaticAsserts.hpp
STATIC_ASSERT_ARITHMETIC_OR_COMPLEX
#define STATIC_ASSERT_ARITHMETIC_OR_COMPLEX(dtype)
Definition: StaticAsserts.hpp:51
nc::utils::cube
constexpr dtype cube(dtype inValue) noexcept
Definition: Utils/cube.hpp:45
nc
Definition: Coordinate.hpp:45