Re: [Rcpp-devel] mpi and RInside

2010-02-15 Thread Dirk Eddelbuettel
Jianping, Very cool. Thanks for posting this! On 8 February 2010 at 17:13, Jianping Hua wrote: | I'm quite new to R and I'd like to run some R program inside my C++ | code. So I installed Rcpp and RInside recently. Since many of my work | involves mpi, so I'm wondering if RInside works with mpi.

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