Re: [Rcpp-devel]

2011-03-24 Thread Steve Lianoglou
Hi, On Thu, Mar 24, 2011 at 12:17 PM, Dirk Eddelbuettel wrote: > > Hi Steve, > > Good to know you are here too :) Thanks ... the water seems nice around here and I'm trying to find an excuse to step in ;-) [aggressive trimming] > Sure -- several Rcpp-using packages on CRAN are in a similar sit

Re: [Rcpp-devel] OpenMP and Rcpp - compiler error

2011-03-24 Thread Dirk Eddelbuettel
On 24 March 2011 at 17:50, Michael Braun wrote: | Dirk: | | This does work when I use the Intel compiler, so perhaps you are right. I am, however, using the standard Apple-provided version, which is 4.2.1. | | I suspect there is a related issue in how OpenMP handles private Rcpp objects in

Re: [Rcpp-devel] Accessing/Copying rows/columns of matrices

2011-03-24 Thread Dirk Eddelbuettel
Michael, On 24 March 2011 at 17:45, Michael Braun wrote: | Hi, all. Another question as I embark on my first project that uses Rcpp. | | Consider the following test code, that comes right off of the Using Matrices section of the Rcpp-quickref file on CRAN. | | RcppExport int test() { | | R

Re: [Rcpp-devel] OpenMP and Rcpp - compiler error

2011-03-24 Thread Michael Braun
Dirk: This does work when I use the Intel compiler, so perhaps you are right. I am, however, using the standard Apple-provided version, which is 4.2.1. I suspect there is a related issue in how OpenMP handles private Rcpp objects in a parallel section. For example, if I declare NumericVecto

[Rcpp-devel] Accessing/Copying rows/columns of matrices

2011-03-24 Thread Michael Braun
Hi, all. Another question as I embark on my first project that uses Rcpp. Consider the following test code, that comes right off of the Using Matrices section of the Rcpp-quickref file on CRAN. RcppExport int test() { Rcpp::NumericMatrix xx(3,2); int i; int xsize = xx.nrow() * xx.ncol();

Re: [Rcpp-devel] OpenMP and Rcpp - compiler error

2011-03-24 Thread Dirk Eddelbuettel
Michael, As a quick off-the-cuff remark, I suspect it is your compiler. I have done quite a few builds with OpenMP when experimenting with a parallel version of RcppDE (the differential evolution optimisation I "ported" from C to C++/Rcpp). I had no issues building this (but issues getting repli

[Rcpp-devel] OpenMP and Rcpp - compiler error

2011-03-24 Thread Michael Braun
Hi. I would like to be able to use OpenMP in conjunction with Rcpp. Here's is an example of the kind of thing I want to do: #include RcppExport SEXP omptest (SEXP X) { BEGIN_RCPP Rcpp::NumericVector Y = X; int n = Y.size(); Rcpp::NumericVector Z(n); int i; double a; #pragma omp par

Re: [Rcpp-devel]

2011-03-24 Thread Dirk Eddelbuettel
Hi Steve, Good to know you are here too :) On 24 March 2011 at 12:07, Steve Lianoglou wrote: | Hi, | | I'm (certainly) no Rcpp expert -- but have just one comment that might | help for this and other people who might find themselves in this | particular part of the situation regarding linking a

Re: [Rcpp-devel]

2011-03-24 Thread Steve Lianoglou
Hi, I'm (certainly) no Rcpp expert -- but have just one comment that might help for this and other people who might find themselves in this particular part of the situation regarding linking against an external library (w/o pulling in all sources into your project): On Thu, Mar 24, 2011 at 8:33 A

Re: [Rcpp-devel]

2011-03-24 Thread Dirk Eddelbuettel
Hi Sean, On 23 March 2011 at 18:59, Sean Robert McGuffee wrote: | Hi Dirk and/or List, | | Thanks for the help! | | First of all, let me apologize for somehow sending this to a Windows related | discussion--I'm actually on a mac. I'm completely oblivious to how | email-interfaced discussion gr