NumCpp
2.16.0
A Templatized Header Only C++ Implementation of the Python NumPy Library
Loading...
Searching...
No Matches
num2str.hpp
Go to the documentation of this file.
1
28
#pragma once
29
30
#include <string>
31
32
#include "
NumCpp/Core/Internal/StaticAsserts.hpp
"
33
34
namespace
nc::utils
35
{
36
//============================================================================
43
template
<
typename
dtype>
44
std::string
num2str
(
dtype
inNumber
)
45
{
46
STATIC_ASSERT_ARITHMETIC
(
dtype
);
47
48
return
std::to_string(
inNumber
);
49
}
50
}
// namespace nc::utils
StaticAsserts.hpp
STATIC_ASSERT_ARITHMETIC
#define STATIC_ASSERT_ARITHMETIC(dtype)
Definition
StaticAsserts.hpp:39
nc::utils
Definition
Utils/cube.hpp:33
nc::utils::num2str
std::string num2str(dtype inNumber)
Definition
num2str.hpp:44
nc::arange
NdArray< dtype > arange(dtype inStart, dtype inStop, dtype inStep=1)
Definition
arange.hpp:59
include
NumCpp
Utils
num2str.hpp
Generated by
1.9.8