Function xgboost_sys::XGDMatrixCreateFromCSR
source · pub unsafe extern "C" fn XGDMatrixCreateFromCSR(
indptr: *const bst_ulong,
indices: *const c_uint,
data: *const f32,
nindptr: bst_ulong,
nelem: bst_ulong,
out: *mut DMatrixHandle
) -> c_int
Expand description
\deprecated \brief create a matrix content from CSR format \param indptr pointer to row headers \param indices findex \param data fvalue \param nindptr number of rows in the matrix + 1 \param nelem number of nonzero elements in the matrix \param out created dmatrix \return 0 when success, -1 when failure happens