| 583 | } |
| 584 | |
| 585 | XGB_DLL int XGDMatrixCreateFromMat_omp(const bst_float *data, // NOLINT |
| 586 | xgboost::bst_ulong nrow, xgboost::bst_ulong ncol, |
| 587 | bst_float missing, DMatrixHandle *out, int nthread) { |
| 588 | API_BEGIN(); |
| 589 | data::DenseAdapter adapter(data, nrow, ncol); |
| 590 | xgboost_CHECK_C_ARG_PTR(out); |
| 591 | *out = new std::shared_ptr<DMatrix>(DMatrix::Create(&adapter, missing, nthread)); |
| 592 | API_END(); |
| 593 | } |
| 594 | |
| 595 | XGB_DLL int XGDMatrixSliceDMatrix(DMatrixHandle handle, const int *idxset, xgboost::bst_ulong len, |
| 596 | DMatrixHandle *out) { |