Re: [Rcpp-devel] Accessing matrix elements

2011-05-14 Thread Dirk Eddelbuettel
Hi Michael, On 14 May 2011 at 18:00, Michael Braun wrote: | Hi, Rcpp-friends: | | File this post under "rookie mistake, "educational illustration," or "feature request," but I noticed something in accessing elements from Rcpp matrices that I found somewhat curious. Consider the following code

[Rcpp-devel] Accessing matrix elements

2011-05-14 Thread Michael Braun
Hi, Rcpp-friends: File this post under "rookie mistake, "educational illustration," or "feature request," but I noticed something in accessing elements from Rcpp matrices that I found somewhat curious. Consider the following code, for which the objective is just to print elements of a matrix.