Convert to an R sparse matrix
Examples
to_dgCMatrix(cuda_sparse(diag(3), device = "cpu"))
#> 3 x 3 sparse Matrix of class "dgCMatrix"
#>
#> [1,] 1 . .
#> [2,] . 1 .
#> [3,] . . 1
Convert to an R sparse matrix
to_dgCMatrix(cuda_sparse(diag(3), device = "cpu"))
#> 3 x 3 sparse Matrix of class "dgCMatrix"
#>
#> [1,] 1 . .
#> [2,] . 1 .
#> [3,] . . 1