Re: [Rd] Performance of .C and .Call functions vs. native R code

From: Alireza Mahani <>
Date: Thu, 14 Jul 2011 09:18:22 -0700 (PDT)

You are absolutely right Gabe! I removed the line 'dim(A) <- dim(A)[1] * dim(A)[2]' and my code still executes properly. As you said, matrices are internally stored as one-dimensional arrays (column-major by default), it's just that R exposes them differently by assigning different attributes to them, but as far as C/C++ code is concerned there is no distinction.

Many thanks,

View this message in context:
Sent from the R devel mailing list archive at

______________________________________________ mailing list
Received on Thu 14 Jul 2011 - 16:32:32 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 14 Jul 2011 - 17:20:08 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive