Compute Library
18.05
|
Functions | |
template<typename T > | |
std::string | to_string (T &&value) |
Convert integer and float values to string. More... | |
template<typename... Ts> | |
int | stoi (Ts &&...args) |
Convert string values to integer. More... | |
template<typename... Ts> | |
int | stoul (Ts &&...args) |
Convert string values to unsigned long. More... | |
template<typename... Ts> | |
int | stof (Ts &&...args) |
Convert string values to float. More... | |
template<typename T , typename = typename std::enable_if<std::is_floating_point<T>::value>::type> | |
T | round (T value) |
Round floating-point value with half value rounding away from zero. More... | |
template<typename T , typename = typename std::enable_if<std::is_floating_point<T>::value>::type> | |
T | trunc (T value) |
Truncate floating-point value. More... | |
template<typename T , typename = typename std::enable_if<std::is_floating_point<T>::value>::type> | |
T | copysign (T x, T y) |
Composes a floating point value with the magnitude of x and the sign of y . More... | |
template<typename... Ts> | |
int | snprintf (char *s, std::size_t n, const char *fmt, Ts &&...args) |
Loads the data from the given location, converts them to character string equivalents and writes the result to a character string buffer. More... | |
std::string | to_string (bool value) |
void * | align (std::size_t alignment, std::size_t size, void *&ptr, std::size_t &space) |
template<typename T , typename = typename std::enable_if<std::is_arithmetic<T>::value>::type> | |
bool | isfinite (T value) |
bool | isfinite (half_float::half value) |
|
inline |
Definition at line 321 of file ToolchainSupport.h.
Referenced by AssemblyKernelGlue< int8_t, int32_t >::run().
|
inline |
Composes a floating point value with the magnitude of x
and the sign of y
.
[in] | x | value that contains the magnitude to be used in constructing the result. |
[in] | y | value that contains the sign to be used in construct in the result. |
x
and sign of y
. Definition at line 289 of file ToolchainSupport.h.
Referenced by arm_compute::test::round_half_even().
|
inline |
Definition at line 338 of file ToolchainSupport.h.
References isfinite().
Referenced by compare< AbsoluteTolerance< U > >::operator bool(), compare< RelativeTolerance< U > >::operator bool(), and arm_compute::test::validation::validate_wrap().
|
inline |
Definition at line 343 of file ToolchainSupport.h.
Referenced by isfinite().
|
inline |
Round floating-point value with half value rounding away from zero.
[in] | value | floating-point value to be rounded. |
value
. Definition at line 257 of file ToolchainSupport.h.
Referenced by arm_compute::test::round_half_even().
|
inline |
Loads the data from the given location, converts them to character string equivalents and writes the result to a character string buffer.
[in] | s | Pointer to a character string to write to |
[in] | n | Up to buf_size - 1 characters may be written, plus the null terminator |
[in] | fmt | Pointer to a null-terminated multibyte string specifying how to interpret the data. |
[in] | args | Arguments forwarded to std::snprintf. |
Definition at line 306 of file ToolchainSupport.h.
Referenced by arm_compute::logging::string_with_format().
int arm_compute::support::cpp11::stof | ( | Ts &&... | args | ) |
Convert string values to float.
[in] | args | Arguments forwarded to std::stof. |
Definition at line 242 of file ToolchainSupport.h.
int arm_compute::support::cpp11::stoi | ( | Ts &&... | args | ) |
Convert string values to integer.
[in] | args | Arguments forwarded to std::stoi. |
Definition at line 212 of file ToolchainSupport.h.
Referenced by TestFilter::is_selected().
int arm_compute::support::cpp11::stoul | ( | Ts &&... | args | ) |
Convert string values to unsigned long.
[in] | args | Arguments forwarded to std::stoul. |
Definition at line 227 of file ToolchainSupport.h.
|
inline |
Convert integer and float values to string.
[in] | value | Value to be converted to string. |
value
. Definition at line 197 of file ToolchainSupport.h.
References to_string().
Referenced by arm_compute::test::validation::DATA_TEST_CASE(), InitializerListDataset< T >::iterator::description(), RangeDataset< T >::iterator::description(), SingletonDataset< T >::iterator::description(), ContainerDataset< T >::iterator::description(), arm_compute::utils::get_typestring(), arm_compute::test::get_typestring(), arm_compute::test::join(), main(), OpenCLTimer::measurements(), SchedulerTimer::measurements(), MaliCounter::measurements(), and Size2D::to_string().
|
inline |
Definition at line 312 of file ToolchainSupport.h.
Referenced by to_string().
|
inline |
Truncate floating-point value.
[in] | value | floating-point value to be truncated. |
value
. Definition at line 273 of file ToolchainSupport.h.
Referenced by arm_compute::test::validation::apply_2d_spatial_filter().