large_matrix.Rd
The R package spam can handle sparse matrices with up to 2^31-1 non-zero elements. For matrices with more non-zero elements it is necessary to load the spam64 package in addition.
With the help of the R package dotCall64 spam interfaces
either the compiled code with 32-bit integers provided in
spam or the compiled code with 64-bit integers provided in
spam64.
To mimick 64-bit behavior, set options(spam.force64 = TRUE)
. The subsequent matrix indices are then stored in double format.
F. Gerber, K. Moesinger, R. Furrer (2017), Extending R packages to support 64-bit compiled code: An illustration with spam64 and GIMMS NDVI3g data, Computer & Geoscience 104, 109-119, https://doi.org/10.1016/j.cageo.2016.11.015.