xgboost
| 类型定义 | 函数
xgboost::common::detail 命名空间参考

class  SpanIterator
 
struct  ExtentValue
 
struct  ExtentAsBytesValue
 
struct  IsAllowedExtentConversion
 
struct  IsAllowedElementTypeConversion
 
struct  IsSpanOracle
 
struct  IsSpanOracle< Span< T, Extent > >
 
struct  IsSpan
 
struct  Less
 
struct  Greater
 

类型定义

using ptrdiff_t = typename std::conditional_t< std::is_same_v< std::ptrdiff_t, std::int64_t >, std::ptrdiff_t, std::int64_t >
 

函数

template<class InputIt1 , class InputIt2 , class Compare = detail::Less<decltype(std::declval<InputIt1>().operator*())>>
XGBOOST_DEVICE bool LexicographicalCompare (InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2)
 

类型定义文档

◆ ptrdiff_t

using xgboost::common::detail::ptrdiff_t = typedef typename std::conditional_t< std::is_same_v<std::ptrdiff_t, std::int64_t>, std::ptrdiff_t, std::int64_t>

默认情况下,XGBoost 使用 uint32_t 进行数据索引。int64_t 可以表示 uint32_t 所能表示的所有值。此外,在 x86-64 Linux 上,GCC 使用 long int 表示 ptrdiff_t,它就是 int64_t。因此我们在此将其确定化。

函数文档

◆ LexicographicalCompare()

template<class InputIt1 , class InputIt2 , class Compare = detail::Less<decltype(std::declval<InputIt1>().operator*())>>
XGBOOST_DEVICE bool xgboost::common::detail::LexicographicalCompare ( InputIt1  first1,
InputIt1  last1,
InputIt2  first2,
InputIt2  last2 
)