Convert a large sparse matrix into a dense matrix without errors
as_matrix.Rd
Avoid the following error . Error in asMethod(object) : . Cholmod error 'problem too large' at file ../Core/cholmod_dense.c, the code comes from https://xuzhougeng.top/archives/R-Sparse-Matrix-Note