Re: [Rcpp-devel] starter

2017-05-31 Thread f.k...@mailbox.org
Darn… it thought it is a copy error but couldn't find the fault!! Thanks a lot. Not it is working. Hope I can now transfer the stuff to my 3-nest-loop.. Cheers, Franz > On 31 May 2017, at 12:46, Romain Francois wrote: > > This looks like a copy and paste mistake. I can definitely see this li

Re: [Rcpp-devel] starter

2017-05-31 Thread Romain Francois
This looks like a copy and paste mistake. I can definitely see this line on the slide 57: RMatrix output; Anyway, the example is there: http://gallery.rcpp.org/articles/parallel-matrix-transform/ Romain > Le 31 mai 2017 à 12:42,

Re: [Rcpp-devel] starter

2017-05-31 Thread f.k...@mailbox.org
Thanks Romain, this error is fine now, however, now I run into new… I took the example code from this presentation of Dirk > Rcpp::sourceCpp("src/par_example.cpp") par_example.cpp:26:21: error: member initializer 'output' does not

Re: [Rcpp-devel] starter

2017-05-31 Thread Romain Francois
You can add this somewhere on top of your cpp file // [[Rcpp::depends(RcppParallel)]] Romain > Le 31 mai 2017 à 12:22, f.k...@mailbox.org a écrit : > > Hi all, > > I am very new to Rcpp and I wrote a function which I now want to parallelize. > The function is working fine, and is much faster

[Rcpp-devel] starter

2017-05-31 Thread f.k...@mailbox.org
Hi all, I am very new to Rcpp and I wrote a function which I now want to parallelize. The function is working fine, and is much faster than in R, however, it really is slow for bigger datasets. Since the function is running I don’t need to explain what it does, however, it is has 3 nested for