MCPcopy Create free account
hub / github.com/dmlc/xgboost / XGDMatrixCreateFromMat_omp

Function XGDMatrixCreateFromMat_omp

src/c_api/c_api.cc:585–593  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

583}
584
585XGB_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
595XGB_DLL int XGDMatrixSliceDMatrix(DMatrixHandle handle, const int *idxset, xgboost::bst_ulong len,
596 DMatrixHandle *out) {

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68