Function xgboost_sys::XGDMatrixCreateFromCSCEx
source · pub unsafe extern "C" fn XGDMatrixCreateFromCSCEx(
col_ptr: *const usize,
indices: *const c_uint,
data: *const f32,
nindptr: usize,
nelem: usize,
num_row: usize,
out: *mut DMatrixHandle
) -> c_int
Expand description
\brief create a matrix content from CSC format \param col_ptr pointer to col 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 num_row number of rows; when it’s set to 0, then guess from data \param out created dmatrix \return 0 when success, -1 when failure happens