|
Medial Code Documentation
|
Copyright 2015-2023 by XGBoost Contributors. More...
#include <xgboost/base.h>#include <algorithm>#include <cmath>#include <limits>#include <type_traits>#include <utility>Go to the source code of this file.
Namespaces | |
| namespace | xgboost |
| namespace of xgboost | |
| namespace | xgboost::common |
| Copyright 2017-2023, XGBoost Contributors. | |
Functions | |
| template<typename T > | |
| XGBOOST_DEVICE T | xgboost::common::Sqr (T const &w) |
| XGBOOST_DEVICE float | xgboost::common::Sigmoid (float x) |
| calculate the sigmoid of the input. | |
| XGBOOST_DEVICE double | xgboost::common::Sigmoid (double x) |
| template<typename T , typename U > | |
| XGBOOST_DEVICE constexpr bool | xgboost::common::CloseTo (T a, U b) |
| Equality test for both integer and floating point. | |
| template<typename Iterator > | |
| XGBOOST_DEVICE void | xgboost::common::Softmax (Iterator start, Iterator end) |
| Do inplace softmax transformaton on start to end. | |
| template<typename Iterator > | |
| XGBOOST_DEVICE Iterator | xgboost::common::FindMaxIndex (Iterator begin, Iterator end) |
| Find the maximum iterator within the iterators. | |
| float | xgboost::common::LogSum (float x, float y) |
| perform numerically safe logsum | |
| template<typename Iterator > | |
| float | xgboost::common::LogSum (Iterator begin, Iterator end) |
| perform numerically safe logsum | |
| template<typename T > | |
| XGBOOST_DEVICE std::enable_if< std::numeric_limits< T >::is_integer, bool >::type | xgboost::common::CheckNAN (T) |
| XGBOOST_DEVICE bool | xgboost::common::CheckNAN (float x) |
| bool | xgboost::common::CheckNAN (double v) |
| template<typename T > | |
| XGBOOST_DEVICE T | xgboost::common::LogGamma (T v) |
Copyright 2015-2023 by XGBoost Contributors.
additional math utils