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

From: Alireza Mahani <alireza.s.mahani_at_gmail.com>
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,
Alireza

--
View this message in context: http://r.789695.n4.nabble.com/Performance-of-C-and-Call-functions-vs-native-R-code-tp3665017p3668047.html
Sent from the R devel mailing list archive at Nabble.com.

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
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 https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive