Fast and efficient coercion of standard matrix objects to sparse matrices. Borrowed from http://gallery.rcpp.org/articles/sparse-matrix-coercion/. INTERNAL USE ONLY.
as_dgCMatrix(XX_)
| XX_ | An object of class |
|---|
An object of class dgCMatrix, coerced from input XX_.