Remove deprecated C APIs. (#4266)
This commit is contained in:
@@ -304,20 +304,6 @@ XGB_DLL int XGDMatrixCreateFromCSREx(const size_t* indptr,
|
||||
API_END();
|
||||
}
|
||||
|
||||
XGB_DLL int XGDMatrixCreateFromCSR(const xgboost::bst_ulong* indptr,
|
||||
const unsigned *indices,
|
||||
const bst_float* data,
|
||||
xgboost::bst_ulong nindptr,
|
||||
xgboost::bst_ulong nelem,
|
||||
DMatrixHandle* out) {
|
||||
std::vector<size_t> indptr_(nindptr);
|
||||
for (xgboost::bst_ulong i = 0; i < nindptr; ++i) {
|
||||
indptr_[i] = static_cast<size_t>(indptr[i]);
|
||||
}
|
||||
return XGDMatrixCreateFromCSREx(&indptr_[0], indices, data,
|
||||
static_cast<size_t>(nindptr), static_cast<size_t>(nelem), 0, out);
|
||||
}
|
||||
|
||||
XGB_DLL int XGDMatrixCreateFromCSCEx(const size_t* col_ptr,
|
||||
const unsigned* indices,
|
||||
const bst_float* data,
|
||||
@@ -374,20 +360,6 @@ XGB_DLL int XGDMatrixCreateFromCSCEx(const size_t* col_ptr,
|
||||
API_END();
|
||||
}
|
||||
|
||||
XGB_DLL int XGDMatrixCreateFromCSC(const xgboost::bst_ulong* col_ptr,
|
||||
const unsigned* indices,
|
||||
const bst_float* data,
|
||||
xgboost::bst_ulong nindptr,
|
||||
xgboost::bst_ulong nelem,
|
||||
DMatrixHandle* out) {
|
||||
std::vector<size_t> col_ptr_(nindptr);
|
||||
for (xgboost::bst_ulong i = 0; i < nindptr; ++i) {
|
||||
col_ptr_[i] = static_cast<size_t>(col_ptr[i]);
|
||||
}
|
||||
return XGDMatrixCreateFromCSCEx(&col_ptr_[0], indices, data,
|
||||
static_cast<size_t>(nindptr), static_cast<size_t>(nelem), 0, out);
|
||||
}
|
||||
|
||||
XGB_DLL int XGDMatrixCreateFromMat(const bst_float* data,
|
||||
xgboost::bst_ulong nrow,
|
||||
xgboost::bst_ulong ncol,
|
||||
|
||||
Reference in New Issue
Block a user