Detailed description |
Currently we see problems like this:
<R>
> library(Matrix)
> m <- .Machine$integer.max
> new("dgTMatrix", i = integer(0), j = integer(0), Dim = c(m, m))
2147483647 x 2147483647 sparse Matrix of class "dgTMatrix"
Error in subCsp_cols(x, j, drop = drop) :
long vectors not supported yet: ../../../R-4.2/src/include/Rinlinedfuns.h:537
</R>
Ideally, we would have a utility like
<R>
function(x, m, n) as(x, "matrix")[seq_len(m), seq_len(n), drop = FALSE]
</R>
but allocating at most an m*n-length matrix, so that show() can become more efficient. |
|