xgboost
Namespaces | Classes | Enumerations | Functions | Variables
xgboost::common Namespace Reference

Namespaces

 detail
 

Classes

class  Span
 span class implementation, based on ISO++20 span<T>. The interface should be the same. More...
 
class  IterSpan
 A simple custom Span type that uses general iterator instead of pointer. More...
 

Enumerations

enum class  byte : unsigned char
 

Functions

template<class T , std::size_t X, class U , std::size_t Y>
XGBOOST_DEVICE bool operator== (Span< T, X > l, Span< U, Y > r)
 
template<class T , std::size_t X, class U , std::size_t Y>
constexpr XGBOOST_DEVICE bool operator!= (Span< T, X > l, Span< U, Y > r)
 
template<class T , std::size_t X, class U , std::size_t Y>
constexpr XGBOOST_DEVICE bool operator< (Span< T, X > l, Span< U, Y > r)
 
template<class T , std::size_t X, class U , std::size_t Y>
constexpr XGBOOST_DEVICE bool operator<= (Span< T, X > l, Span< U, Y > r)
 
template<class T , std::size_t X, class U , std::size_t Y>
constexpr XGBOOST_DEVICE bool operator> (Span< T, X > l, Span< U, Y > r)
 
template<class T , std::size_t X, class U , std::size_t Y>
constexpr XGBOOST_DEVICE bool operator>= (Span< T, X > l, Span< U, Y > r)
 
template<class T , std::size_t E>
XGBOOST_DEVICE auto as_bytes (Span< T, E > s) __span_noexcept -> Span< const byte, detail::ExtentAsBytesValue< T, E >::value >
 
template<class T , std::size_t E>
XGBOOST_DEVICE auto as_writable_bytes (Span< T, E > s) __span_noexcept -> Span< byte, detail::ExtentAsBytesValue< T, E >::value >
 

Variables

constexpr std::size_t dynamic_extent = std::numeric_limits<std::size_t>::max()
 

Enumeration Type Documentation

◆ byte

enum xgboost::common::byte : unsigned char
strong

Function Documentation

◆ as_bytes()

template<class T , std::size_t E>
XGBOOST_DEVICE auto xgboost::common::as_bytes ( Span< T, E >  s) -> Span<const byte, detail::ExtentAsBytesValue<T, E>::value>

◆ as_writable_bytes()

template<class T , std::size_t E>
XGBOOST_DEVICE auto xgboost::common::as_writable_bytes ( Span< T, E >  s) -> Span<byte, detail::ExtentAsBytesValue<T, E>::value>

◆ operator!=()

template<class T , std::size_t X, class U , std::size_t Y>
constexpr XGBOOST_DEVICE bool xgboost::common::operator!= ( Span< T, X >  l,
Span< U, Y >  r 
)
constexpr

◆ operator<()

template<class T , std::size_t X, class U , std::size_t Y>
constexpr XGBOOST_DEVICE bool xgboost::common::operator< ( Span< T, X >  l,
Span< U, Y >  r 
)
constexpr

◆ operator<=()

template<class T , std::size_t X, class U , std::size_t Y>
constexpr XGBOOST_DEVICE bool xgboost::common::operator<= ( Span< T, X >  l,
Span< U, Y >  r 
)
constexpr

◆ operator==()

template<class T , std::size_t X, class U , std::size_t Y>
XGBOOST_DEVICE bool xgboost::common::operator== ( Span< T, X >  l,
Span< U, Y >  r 
)

◆ operator>()

template<class T , std::size_t X, class U , std::size_t Y>
constexpr XGBOOST_DEVICE bool xgboost::common::operator> ( Span< T, X >  l,
Span< U, Y >  r 
)
constexpr

◆ operator>=()

template<class T , std::size_t X, class U , std::size_t Y>
constexpr XGBOOST_DEVICE bool xgboost::common::operator>= ( Span< T, X >  l,
Span< U, Y >  r 
)
constexpr

Variable Documentation

◆ dynamic_extent

constexpr std::size_t xgboost::common::dynamic_extent = std::numeric_limits<std::size_t>::max()
constexpr