NumCpp  2.14.0
A Templatized Header Only C++ Implementation of the Python NumPy Library
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Utils/cube.hpp
Go to the documentation of this file.
1
28#pragma once
29
31
32namespace nc::utils
33{
34 //============================================================================
41 template<typename dtype>
42 constexpr dtype cube(dtype inValue) noexcept
43 {
45
46 return inValue * inValue * inValue;
47 }
48} // namespace nc::utils
#define STATIC_ASSERT_ARITHMETIC_OR_COMPLEX(dtype)
Definition StaticAsserts.hpp:56
Definition Utils/cube.hpp:33
constexpr dtype cube(dtype inValue) noexcept
Definition Utils/cube.hpp:42
NdArray< dtype > arange(dtype inStart, dtype inStop, dtype inStep=1)
Definition arange.hpp:59