Coercion methods to convert dbMatrix objects to in-memory dgCMatrix objects.
Respects dbMatrix.max_mem_convert option to prevent OOM errors.
Value
A Matrix::dgCMatrix object containing the collected matrix
values. Dense inputs are converted to sparse Matrix format after collection.