xgboost
Classes | Namespaces | Macros | Functions
common.h File Reference

Common utilities. More...

#include <xgboost/base.h>
#include <xgboost/logging.h>
#include <xgboost/span.h>
#include <algorithm>
#include <exception>
#include <functional>
#include <limits>
#include <type_traits>
#include <vector>
#include <string>
#include <sstream>
#include <numeric>
#include <utility>
Include dependency graph for common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  xgboost::common::Range
 
class  xgboost::common::Range::Iterator
 
class  xgboost::common::IndexTransformIter< Fn >
 Transform iterator that takes an index and calls transform operator. More...
 
struct  xgboost::common::OptionalWeights
 

Namespaces

 dh
 
 xgboost
 namespace of xgboost
 
 xgboost::common
 
 xgboost::common::detail
 

Macros

#define WITH_CUDA()   false
 

Functions

std::vector< std::string > xgboost::common::Split (const std::string &s, char delim)
 Split a string by delimiter. More...
 
template<typename T >
XGBOOST_DEVICExgboost::common::Max (T a, T b)
 
template<typename T >
std::string xgboost::common::ToString (const T &data)
 
template<typename T1 , typename T2 >
XGBOOST_DEVICE T1 xgboost::common::DivRoundUp (const T1 a, const T2 b)
 
template<class T , std::size_t N, std::size_t... Idx>
constexpr auto xgboost::common::detail::UnpackArr (std::array< T, N > &&arr, std::index_sequence< Idx... >)
 
template<class T , std::size_t N>
constexpr auto xgboost::common::UnpackArr (std::array< T, N > &&arr)
 
template<typename Fn >
auto xgboost::common::MakeIndexTransformIter (Fn &&fn)
 
int xgboost::common::AllVisibleGPUs ()
 
void xgboost::common::AssertGPUSupport ()
 
void xgboost::common::AssertOneAPISupport ()
 
template<typename Idx , typename Container , typename V = typename Container::value_type, typename Comp = std::less<V>>
std::vector< Idx > xgboost::common::ArgSort (Container const &array, Comp comp=std::less< V >{})
 

Detailed Description

Common utilities.

Copyright 2015-2018 by Contributors

Macro Definition Documentation

◆ WITH_CUDA

#define WITH_CUDA ( )    false