Define bin type. (#7850)

This commit is contained in:
Jiaming Yuan
2022-04-29 19:41:39 +08:00
committed by GitHub
parent f7db16add1
commit 288c52596c
4 changed files with 25 additions and 23 deletions

View File

@@ -121,6 +121,8 @@ using bst_float = float; // NOLINT
using bst_cat_t = int32_t; // NOLINT
/*! \brief Type for data column (feature) index. */
using bst_feature_t = uint32_t; // NOLINT
/*! \brief Type for histogram bin index. */
using bst_bin_t = int32_t; // NOLINT
/*! \brief Type for data row index.
*
* Be careful `std::size_t' is implementation-defined. Meaning that the binary