Skip to content
Prev 47270 / 63424 Next

Matrix memory layout R vs. C

On 06/12/2013 14:42, G?bor Cs?rdi wrote:
And to be safer on a 64-bit platform

#define INDEX(i,j) ((i) + rows*(R_xlen_t)(j))

since rows*j might overflow there.