[Rcpp-devel] Fwd: List of uniform_int_distribution objects

2016-04-26 Thread aakremena
--Original Message- From: Dirk Eddelbuettel To: aakremena Cc: rcpp-devel Sent: Tue, Apr 26, 2016 1:52 pm Subject: Re: [Rcpp-devel] List of uniform_int_distribution objects On 26 April 2016 at 14:45, aakrem...@aol.com wrote: | Hi everybody, | |1. I am trying to create an Rcpp list, eac

[Rcpp-devel] Fwd: List of uniform_int_distribution objects

2016-04-26 Thread aakremena
gn/T//Rtmpm2tVkx/sourcecpp_f9e77d6b9433/sourceCpp_221.so -Original Message- From: aakremena To: rcpp-devel Sent: Tue, Apr 26, 2016 1:45 pm Subject: List of uniform_int_distribution objects Hi everybody, 1. I am trying to create an Rcpp list, each of whose

[Rcpp-devel] List of uniform_int_distribution objects

2016-04-26 Thread aakremena
Hi everybody, 1. I am trying to create an Rcpp list, each of whose elements contain an uniform_int_distribution object. 2. My understanding is that since an uniform_int_distribution object is a non-SEXP one, I need to create a specialization of wrap() first. 3. To this end, I am using

Re: [Rcpp-devel] OpenMP/Rcpp Error: C stack usage is too close to the limit

2016-03-19 Thread aakremena
warnings disappear. Why? I thought these function WERE already explicitly declared in the omp.h header file... What am I missing? Thank you in advance. Anguel -Original Message- From: Dirk Eddelbuettel To: aakremena Cc: rcpp-devel Sent: Sat, Mar 19, 2016 1:45 pm

[Rcpp-devel] OpenMP/Rcpp Error: C stack usage is too close to the limit

2016-03-19 Thread aakremena
Dear Rcpp Developer List subscribers, I am experimenting with OpenMP on Rcpp. Here is a simple program I'm trying to run on my (4-core MacBookPro 8,3, Intel Cor i7, 2.3 GHz) computer (clang-omp compiler): #include #include #ifdef _OPENMP #include #endif #include #include #include //[[Rcpp:

[Rcpp-devel] Fwd: fatal error: 'omp.h' file not found

2016-03-14 Thread aakremena
3.6 sec with 4 threads (speadup = 3) 2.5 sec with 8 threads (speedup = 4.3) Again, thank you all for your prompt and competent advice. Anguel -Original Message- From: aakremena To: krthornt ; rcpp-devel Sent: Mon, Mar 14, 2016 11:55 am Subject: Fwd: [Rcpp-devel]

[Rcpp-devel] Fwd: fatal error: 'omp.h' file not found

2016-03-14 Thread aakremena
Sorry, I guess James' e-mail contains some directions, albeit not for RStudio specifically. I'll try them. Thanks. Anguel -Original Message----- From: aakremena To: krthornt ; rcpp-devel Sent: Mon, Mar 14, 2016 11:45 am Subject: Re: [Rcpp-devel] fatal error: '

Re: [Rcpp-devel] fatal error: 'omp.h' file not found

2016-03-14 Thread aakremena
Hi James and Kevin, Thank you very much for the advices (I'll try James' directions shortly). But I have already installed clang-omp via $ brew install clang-omp The compiler is available at /usr/local/Library/Formula/clang-omp.rb Can I ask you for some directions as to ho

[Rcpp-devel] fatal error: 'omp.h' file not found

2016-03-14 Thread aakremena
Dear Rcpp development list members, I am trying to use OpenMP with Rcpp. The code (placed in omp_experiment.cpp file) is pretty basic: #include #include //[[Rcpp::plugins(openmp)]] //[[Rcpp::depends(RcppArmadillo)]] using namespace Rcpp; // [[Rcpp::export]] int timesTwo(int x) { return x

Re: [Rcpp-devel] Rcpp problem related to sourceCpp_1.so

2016-02-05 Thread aakremena
" I think that "something basic" (like simply put the URL in the Rcpp FAQ) will be just fine. The idea is just to direct the OS X use that experienced "my" problem in the right direction. Thanks again. Anguel Grigorov -Original Message- From: Dirk Eddelb

Re: [Rcpp-devel] Rcpp problem related to sourceCpp_1.so

2016-02-05 Thread aakremena
working with Rcpp for a OS X Maverick user. Thanks again. Anguel -Original Message- From: Balamuta, James Joseph To: aakremena ; rcpp-devel Sent: Thu, Feb 4, 2016 5:58 pm Subject: Re: [Rcpp-devel] Rcpp problem related to sourceCpp_1.so Greetings and Salutations, See

Re: [Rcpp-devel] Rcpp problem related to sourceCpp_1.so

2016-02-04 Thread aakremena
Hi James, Thank you so much. Anguel -Original Message- From: Balamuta, James Joseph To: aakremena ; rcpp-devel Sent: Thu, Feb 4, 2016 5:58 pm Subject: Re: [Rcpp-devel] Rcpp problem related to sourceCpp_1.so Greetings and Salutations, See: http

[Rcpp-devel] Rcpp problem related to sourceCpp_1.so

2016-02-04 Thread aakremena
Hi everyone, My name is Anguel and I am new to this list. 1. I am trying to implement some simple example of a C++ compiled function from Hadley Wickham's website (http://adv-r.had.co.nz/Rcpp.html#rcpp). In fact the function I am trying to compile is the first one: library(Rcpp) cppFunctio