Compute Library
17.10
|
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... | |
std::string | to_string (bool value) |
void * | align (std::size_t alignment, std::size_t size, void *&ptr, std::size_t &space) |
|
inline |
|
inline |
Composes a floating point value with the magnitude of x
and the sign of y
.
[in] | x | value that contains the magnitued to be used in constructing the result. |
[in] | y | value that contains the sign to be used in constructin the result. |
x
and sign of y
. Definition at line 259 of file ToolchainSupport.h.
Referenced by arm_compute::test::round_half_even().
|
inline |
Round floating-point value with half value rounding away from zero.
[in] | value | floating-point value to be rounded. |
value
. Definition at line 228 of file ToolchainSupport.h.
Referenced by finalize(), lktracker_stage0(), lktracker_stage1(), roi_pooling_layer(), and arm_compute::test::round_half_even().
int arm_compute::support::cpp11::stof | ( | Ts &&... | args | ) |
Convert string values to float.
[in] | args | Arguments forwarded to std::stof. |
Definition at line 213 of file ToolchainSupport.h.
References caffe_data_extractor::args.
int arm_compute::support::cpp11::stoi | ( | Ts &&... | args | ) |
Convert string values to integer.
[in] | args | Arguments forwarded to std::stoi. |
Definition at line 183 of file ToolchainSupport.h.
References caffe_data_extractor::args.
int arm_compute::support::cpp11::stoul | ( | Ts &&... | args | ) |
Convert string values to unsigned long.
[in] | args | Arguments forwarded to std::stoul. |
Definition at line 198 of file ToolchainSupport.h.
References caffe_data_extractor::args.
|
inline |
Convert integer and float values to string.
[in] | value | Value to be converted to string. |
value
. Definition at line 168 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(), MaliCounter::measurements(), and JSONPrinter::print_measurements().
|
inline |
|
inline |
Truncate floating-point value.
[in] | value | floating-point value to be truncated. |
value
. Definition at line 243 of file ToolchainSupport.h.
Referenced by arm_compute::test::validation::apply_2d_spatial_filter().