| 911 | } |
| 912 | |
| 913 | XGB_DLL int XGDMatrixNumCol(DMatrixHandle handle, bst_ulong *out) { |
| 914 | return GetDMatrixIntegralInfo(handle, out, [](DMatrix const *p_fmat) { |
| 915 | return static_cast<bst_ulong>(p_fmat->Info().num_col_); |
| 916 | }); |
| 917 | } |
| 918 | |
| 919 | // We name the function non-missing instead of non-zero since zero is perfectly valid for XGBoost. |
| 920 | XGB_DLL int XGDMatrixNumNonMissing(DMatrixHandle handle, bst_ulong *out) { |