RcppArmadillo icon indicating copy to clipboard operation
RcppArmadillo copied to clipboard

Additional ARMA_64BIT_WORD support

Open eddelbuettel opened this issue 1 year ago • 3 comments

ARMA_64BIT_WORD is useful for extended ranges and longer indices beyond the scope of a 32-bit integer. A reverse-dependency check is revealing that we cannot enforce it as a few dozen packages fail.

eddelbuettel avatar Oct 05 '24 14:10 eddelbuettel

Setting ARMA_64BIT_WORD turns ints into long long which cannot map (as easily) back to R. Packages using integer vectors in Armadillo (ie arma::ivec) then have issues. A reverse-dependency check revealed a few dozen affected packages. While this is only a small subset of the well over 1000 packages using RcppArmadillo it still means we cannot easily or automatically switch this and need to keep it as an opt-in for users.

eddelbuettel avatar Oct 10 '24 15:10 eddelbuettel

how to switch to ARMA_64BIT_WORD so ?

ttraboue avatar Mar 17 '25 00:03 ttraboue

By setting a #define

eddelbuettel avatar Mar 17 '25 00:03 eddelbuettel