[Rcpp-devel] For a Matrix A, is A(i, j) or A[i, j] preferred as an accessor for an element
bates at stat.wisc.edu
Mon Dec 10 17:45:45 CET 2012
On Mon, Dec 10, 2012 at 10:38 AM, Romain Francois
<romain at r-enthusiasts.com>wrote:
> Le 10/12/12 17:29, Douglas Bates a écrit :
>> or does it matter?
> A[i,j] is wrong, not valid C or C++ code. so there is only one choice.
Indeed. Thanks. Somehow I managed to convince myself that I had used
A[i,j] at some point and the compiler accepted it. Apparently my memory
isn't what it used to be.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Rcpp-devel