Re: [Rcpp-devel] bounds checking disabled for RcppEigen?

2012-08-01 Thread Dirk Eddelbuettel
On 1 August 2012 at 17:41, Douglas Bates wrote: | I don't really think that bounds checking is slowing down this | calculation. You can make the whole thing run faster by the simple | expedient of reordering the loops. For me, this version | | STLvectortest<-' | const NumericMatrix X = Rcpp::as

Re: [Rcpp-devel] bounds checking disabled for RcppEigen?

2012-08-01 Thread Douglas Bates
I don't really think that bounds checking is slowing down this calculation. You can make the whole thing run faster by the simple expedient of reordering the loops. For me, this version STLvectortest<-' const NumericMatrix X = Rcpp::as(mat); int p = X.nrow(); std::vector V(p*p); // Copy data in

Re: [Rcpp-devel] bounds checking disabled for RcppEigen?

2012-08-01 Thread Andrew Slaughter
I'll see if I can dig up the old benchmarks I wrote looking at it; I'm pretty sure I tried using both the (i,j) and .at(i,j) methods for accessing, but I'll have to double-check. In any case, it was pretty much the same sort of test as the code in my initial email - looping over a moderate sized ma

Re: [Rcpp-devel] bounds checking disabled for RcppEigen?

2012-08-01 Thread Dirk Eddelbuettel
On 1 August 2012 at 16:05, Douglas Bates wrote: | On Wed, Aug 1, 2012 at 12:46 PM, Andrew Slaughter | wrote: | > First of all, great job with Rcpp - it's an awesome tool, and finally gave | > me a reason to go back to my C++ books and get beyond "Hello World"! | > | > I did have a question about

Re: [Rcpp-devel] bounds checking disabled for RcppEigen?

2012-08-01 Thread Douglas Bates
On Wed, Aug 1, 2012 at 12:46 PM, Andrew Slaughter wrote: > First of all, great job with Rcpp - it's an awesome tool, and finally gave > me a reason to go back to my C++ books and get beyond "Hello World"! > > I did have a question about RcppEigen, though: specifically, when I use > RcppEigen throu

Re: [Rcpp-devel] OpenMP and Rinside

2012-08-01 Thread David Ibarra Gómez
I've got the whole thing working with MPI, after playing aroud the makefile and the include order (I'm using many different libraries RInside, Cassandra, Mongo, CBC...). Thank you for the include MPI examples and the makefile. David Ibarra Gomez De: Andreas Alfons [andreas.alf...@kuleuven.be]

[Rcpp-devel] bounds checking disabled for RcppEigen?

2012-08-01 Thread Andrew Slaughter
First of all, great job with Rcpp - it's an awesome tool, and finally gave me a reason to go back to my C++ books and get beyond "Hello World"! I did have a question about RcppEigen, though: specifically, when I use RcppEigen through inline, is bounds checking disabled? If not, how could I go abou

Re: [Rcpp-devel] OpenMP and Rinside

2012-08-01 Thread Andreas Alfons
I used Rcpp with OpenMP in one of my packages (the new version is not on CRAN yet, only on github), so I can help with putting together an example. I'm at conferences this week and next week, though, so I'm a bit constrained with time right now. - Andreas On Tue, Jul 31, 2012 at 5:00 AM, Dirk E