Closed stla closed 2 years ago
R only has its integer type integer
aka int32_t
, not uint32_t
, so there is nothing we can do here.
As the range for uint32_t
is larger, mapping could be 'lossy' on the range which is likely we decided (long-ago) to map to numeric
aka double
.
BTW there is the bit64
package with its integer64
type which is used in a number of packages so you could write yourself a custom converter. But that is outside of the scope of RcppArmadillo.
Hello,
I expected to get a matrix
M
withint
entries sincearma::umat
is a matrix of unsigned integers, right?Is it a bug or am I misunderstanding something?