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

Function XGDMatrixNumCol_R

R-package/src/xgboost_R.cc:661–667  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

659}
660
661XGB_DLL SEXP XGDMatrixNumCol_R(SEXP handle) {
662 bst_ulong ncol;
663 R_API_BEGIN();
664 CHECK_CALL(XGDMatrixNumCol(R_ExternalPtrAddr(handle), &ncol));
665 R_API_END();
666 return Rf_ScalarInteger(static_cast<int>(ncol));
667}
668
669XGB_DLL SEXP XGProxyDMatrixCreate_R() {
670 SEXP out = Rf_protect(R_MakeExternalPtr(nullptr, R_NilValue, R_NilValue));

Callers

nothing calls this directly

Calls 1

XGDMatrixNumColFunction · 0.85

Tested by

no test coverage detected