Function xgboost_sys::XGDMatrixCreateFromMat[][src]

pub unsafe extern "C" fn XGDMatrixCreateFromMat(
    data: *const f32,
    nrow: bst_ulong,
    ncol: bst_ulong,
    missing: f32,
    out: *mut DMatrixHandle
) -> c_int

\brief create matrix content from dense matrix \param data pointer to the data space \param nrow number of rows \param ncol number columns \param missing which value to represent missing value \param out created dmatrix \return 0 when success, -1 when failure happens