Re: [Rcpp-devel] Using Rcpp with C++11 and clang

2012-08-28 Thread Michael Braun
Mac + clang + libc++ combination? Michael On Aug 28, 2012, at 3:09 PM, Dirk Eddelbuettel wrote: > > Hi Michael, > > Congrats on your recent flooding of CRAN with packages :) > > On 28 August 2012 at 18:46, Michael Braun wrote: > | Is it possible that there is some kind of i

[Rcpp-devel] Using Rcpp with C++11 and clang

2012-08-28 Thread Michael Braun
ompiler in XCode, I thought you might like to know about this, and perhaps let me know if I have made some kind of mistake. Thanks, ------- Michael Braun Associate Professor of Marketing MIT Sloan School of Management 617-253-3436

Re: [Rcpp-devel] Loading Rcpp modules from dynamic library

2012-02-27 Thread Michael Braun
Romain: Thanks for your helpful response. This works perfectly. Michael On Feb 26, 2012, at 8:50 AM, wrote: > hello, > > You can grab the result of dyn.load and use it as the PACKAGE argument of > Module. > > Romain > > > Le 26 févr. 2012 à 01:11, Michae

Re: [Rcpp-devel] Loading Rcpp modules from dynamic library

2012-02-25 Thread Michael Braun
ourse, if what I want to do is known to be impossible, that would also be a helpful response. Respectfully, Michael On Feb 25, 2012, at 3:24 PM, Dirk Eddelbuettel wrote: > > Hi Michael, > > On 25 February 2012 at 19:45, Michael Braun wrote: > | Hi. I would like to sta

[Rcpp-devel] Loading Rcpp modules from dynamic library

2012-02-25 Thread Michael Braun
es with self-compiled code, outside of the R package structure (I believe I have good reasons for doing this). The library may also include other C++ functions that are loaded with no problem. It's just the module that is not recognized. Thanks in advance for any suggestions. Michael

Re: [Rcpp-devel] Stack imbalance warning when using Rcpp and OpenMP

2011-08-19 Thread Michael Braun
I'm considering an STL vector of either Eigen or Armadillo matrices, for example. Good idea, or bad? Thanks again, Michael On Jul 27, 2011, at 3:55 PM, Dirk Eddelbuettel wrote: > > On 27 July 2011 at 15:04, Michael Braun wrote: > | It is taking the SEXP as the argument. If

Re: [Rcpp-devel] Stack imbalance warning when using Rcpp and OpenMP

2011-07-27 Thread Michael Braun
elp at all. But let's get the simple case fixed first. Are you aware of anyone at all who has had success combining Rcpp and OpenMP? On Jul 27, 2011, at 2:55 PM, Davor Cubranic wrote: > On 2011-07-27, at 10:33 AM, Michael Braun wrote: > >> I want to avoid making a copy of the

Re: [Rcpp-devel] Stack imbalance warning when using Rcpp and OpenMP

2011-07-27 Thread Michael Braun
s a double as an argument, instead of the SEXP. So I think there is something going on with passing the SEXP to func, and then using Rcpp::as to convert the SEXP to double. Is this close to what you are asking? On Jul 27, 2011, at 1:26 PM, Davor Cubranic wrote: > On 2011-07-26, at 8:01 PM,

Re: [Rcpp-devel] Stack imbalance warning when using Rcpp and OpenMP

2011-07-26 Thread Michael Braun
with OpenMP; this is such a simple example. Perhaps you have something specific in mind. Is there any way you (or someone else on the list) could give me another hint? Thanks, Michael On Jul 26, 2011, at 8:26 PM, Dirk Eddelbuettel wrote: > > Michael, > > On 26 July 2011 at 17:

[Rcpp-devel] Stack imbalance warning when using Rcpp and OpenMP

2011-07-26 Thread Michael Braun
could not figure out how to include the two different functions.) Thanks, Michael ----------- Michael Braun Associate Professor of Management Science (Marketing Group) MIT Sloan School of Management 100 Main St.., E62-535 Cambridge, MA 02139 br

Re: [Rcpp-devel] Matrix columns

2011-05-14 Thread Michael Braun
rsion of rcpp I installed is 0.9.4 on the most recent version of > R. > > > > Can anyone show me what is wrong here? > > Besides the syntax problems, what I am doing here should work, right? > > I know there are non-Rcpp ways to get this done, but this is just something

[Rcpp-devel] Accessing matrix elements

2011-05-14 Thread Michael Braun
Hi, Rcpp-friends: File this post under "rookie mistake, "educational illustration," or "feature request," but I noticed something in accessing elements from Rcpp matrices that I found somewhat curious. Consider the following code, for which the objective is just to print elements of a matrix.

Re: [Rcpp-devel] Accessing/copying rows/colums of matrices

2011-04-06 Thread Michael Braun
arn a lot from the process. On Apr 7, 2011, at 12:59 AM, Dirk Eddelbuettel wrote: > > On 7 April 2011 at 00:31, Michael Braun wrote: > | A couple of weeks ago, I posted a problem in compiling and running one of > the > | examples from the Rcpp-quickref pdf. There were two suggest

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

2011-04-06 Thread Michael Braun
anic wrote: > On April 6, 2011 07:49:32 pm Michael Braun wrote: >> I've been able to upgrade my compiler to g++ 4.6 on the Mac, and I also >> checked this on a Red Hat Linux system with g++ 4.4. In both cases, the >> OpenMP code does compile and run, so I agree that i

[Rcpp-devel] Accessing/copying rows/colums of matrices

2011-04-06 Thread Michael Braun
ssing things up. (Incidentally, this fails on the Mac when using inline as well, but that appears to be yet another issue). I tried to make this example as small and replicable as possible. If you need me to present this problem another way, please let me know. Thanks, Michael --

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

2011-04-06 Thread Michael Braun
elbuettel wrote: > > > 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 ther

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

2011-03-24 Thread Michael Braun
cpp -o michael.o > g++ -shared -o michael.so michael.o -fopenmp -lgomp > -L/usr/local/lib/R/site-library/Rcpp/lib -lRcpp > -Wl,-rpath,/usr/local/lib/R/site-library/Rcpp/lib -llapack -lblas -lgfortran > -lm -L/usr/lib64/R/lib -lR -L/usr/lib64/R/lib -lR > edd@max:/tmp$ &

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

2011-03-24 Thread Michael Braun
onInfo(), I confirmed that I have Rcpp 0.9.2 installed. It seems like I am doing *exactly* what is in the documentation. Am I missing something? Thanks, Michael ------- Michael Braun Homer A. Burnell (1928) Career Development Professor, and Assistant P

[Rcpp-devel] OpenMP and Rcpp - compiler error

2011-03-24 Thread Michael Braun
+ version 4.2.1 on a Mac Pro running OSX 10.6.6. Any thoughts? Thanks, Michael ------- Michael Braun Homer A. Burnell (1928) Career Development Professor, and Assistant Professor of Management Science (Marketing Group) MIT Sloan School of Manag