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

Function XGDMatrixCreateFromMat

src/c_api/c_api.cc:576–583  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

574}
575
576XGB_DLL int XGDMatrixCreateFromMat(const bst_float *data, xgboost::bst_ulong nrow,
577 xgboost::bst_ulong ncol, bst_float missing, DMatrixHandle *out) {
578 API_BEGIN();
579 data::DenseAdapter adapter(data, nrow, ncol);
580 xgboost_CHECK_C_ARG_PTR(out);
581 *out = new std::shared_ptr<DMatrix>(DMatrix::Create(&adapter, missing, 1));
582 API_END();
583}
584
585XGB_DLL int XGDMatrixCreateFromMat_omp(const bst_float *data, // NOLINT
586 xgboost::bst_ulong nrow, xgboost::bst_ulong ncol,

Calls

no outgoing calls

Tested by

no test coverage detected