Re: [Rcpp-devel] Dealing with 2-dimensional vectors

2010-02-15 Thread Romain Francois
On 02/15/2010 10:23 AM, Leo Alekseyev wrote: >>> I can get the dimensions attribute via Rcpp::RObject's attr() method, >>> but that took some digging to figure out -- mostly because I can't >>> seem to get the cast operator to work properly. Here is how I get the >>> dimensions currently: >>> >>>

Re: [Rcpp-devel] Dealing with 2-dimensional vectors

2010-02-15 Thread Leo Alekseyev
>> I can get the dimensions attribute via Rcpp::RObject's attr() method, >> but that took some digging to figure out -- mostly because I can't >> seem to get the cast operator to work properly.  Here is how I get the >> dimensions currently: >> >> Rcpp::RObject::AttributeProxy sa_dims_ap(sig_action

Re: [Rcpp-devel] Dealing with 2-dimensional vectors

2010-02-15 Thread Romain Francois
On 02/15/2010 06:42 AM, Leo Alekseyev wrote: > Hi all, > > I got a chance to play with Rcpp some more this weekend. I like it! Cool > The one thing that I found a little awkward, however, is dealing with > matrices -- while the new API's SimpleVector indexes them just fine, I > wish it had provi