10 #include <cuda/std/limits>
11 #include <cuda/std/type_traits>
20 auto to_string(T value) -> std::string
22 if constexpr (cuda::std::is_same_v<T, __int128_t>) {
23 auto s = std::string{};
24 auto const sign = value < 0;
28 if (value == cuda::std::numeric_limits<__int128_t>::max())
29 return "-170141183460469231731687303715884105728";
33 s.push_back(
"0123456789"[value % 10]);
36 if (sign) s.push_back(
'-');
40 return std::to_string(value);
48 return value >= 0 ? value : -value;
54 return lhs < rhs ? lhs : rhs;
60 return lhs > rhs ? lhs : rhs;
63 template <
typename BaseType>
68 value *= 10, --exponent;
std::unique_ptr< table > reverse(table_view const &source_table, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref())
Reverses the rows within a table.
fixed_point and supporting types
Type declarations for libcudf.
#define CUDF_HOST_DEVICE
Indicates that the function or method is usable on host and device.