Re: [Rcpp-devel] Eigen vs Arma -- was: Re: Ceres nonlinear least squares solver

2012-05-03 Thread c s
The upcoming upgrade to Armadillo (version 3.2) will have a bunch of speedups, including faster eigen-decomposition. Armadillo 3.2 is currently in beta testing. On Fri, May 4, 2012 at 2:31 AM, Dirk Eddelbuettel wrote: > I do not think you will get '2x'.  I'd say between 1/5 to 1/3. > > Not neglib

Re: [Rcpp-devel] [Rd] Setting up a windows system for rcpp

2012-05-03 Thread Dirk Eddelbuettel
On 4 May 2012 at 00:07, Owe Jessen wrote: | I am running into a wall getting my system to work with rcpp and inline. | Following Dirk's advice on stackoverflow, I hope someone is able to help | me. There is a dedicated mailing list for Rcpp: rcpp-devel. Please let us try to continue the di

Re: [Rcpp-devel] Eigen vs Arma -- was: Re: Ceres nonlinear least squares solver

2012-05-03 Thread Dirk Eddelbuettel
On 3 May 2012 at 10:33, Whit Armstrong wrote: | Thanks for that. So, roughly 2x vs arma for lm fit. I do not think you will get '2x'. I'd say between 1/5 to 1/3. Not neglible, but not earth-shattering given that a) Armadillo is easier to work with (IMHO, and personal taste) and b) yo

Re: [Rcpp-devel] PKG_CXXFLAGS of Makevar

2012-05-03 Thread Dirk Eddelbuettel
On 3 May 2012 at 10:52, Seungki Kim wrote: | Hi, | | I am using a Makevar file for Rcpp package. It's from [ Rcpp.package.skeleton( | ) ] command. | | I added something for GSL. | | GSL_CFLAGS = `gsl-config --cflags` | GSL_LIBS   = `gsl-config --libs` | | PKG_CXXFLAGS= `${R_HOME}/bin/Rscript -

[Rcpp-devel] PKG_CXXFLAGS of Makevar

2012-05-03 Thread Seungki Kim
Hi, I am using a Makevar file for Rcpp package. It's from [ Rcpp.package.skeleton( ) ] command. I added something for GSL. GSL_CFLAGS = `gsl-config --cflags` GSL_LIBS = `gsl-config --libs` PKG_CXXFLAGS= `${R_HOME}/bin/Rscript -e "Rcpp:::CxxFlags()"` $(GSL_CFLAGS) PKG_LIBS = `$(R_HOME)/bin/Rsc

Re: [Rcpp-devel] Eigen vs Arma -- was: Re: Ceres nonlinear least squares solver

2012-05-03 Thread Whit Armstrong
Thanks for that. So, roughly 2x vs arma for lm fit. It would not be hard to test it on my logp functions in cppbugs... Perhaps after R/Fin. I'll post back once I get around to it. Thanks again. Cheers, Whit On Thu, May 3, 2012 at 8:43 AM, Dirk Eddelbuettel wrote: > > On 3 May 2012 at 08:20,

[Rcpp-devel] Eigen vs Arma -- was: Re: Ceres nonlinear least squares solver

2012-05-03 Thread Dirk Eddelbuettel
On 3 May 2012 at 08:20, Whit Armstrong wrote: | Doug, | | Apologies for my question, it's a little off topic from your original | post (hence the modified subject). | | I've integrated Armadillo into the new mcmc packages I've been | developing without giving much thought to Eigen. | | Unfortun

[Rcpp-devel] Eigen vs Arma -- was: Re: Ceres nonlinear least squares solver

2012-05-03 Thread Whit Armstrong
Doug, Apologies for my question, it's a little off topic from your original post (hence the modified subject). I've integrated Armadillo into the new mcmc packages I've been developing without giving much thought to Eigen. Unfortunately, the benchmarks page on the Armadillo site doesn't provide

Re: [Rcpp-devel] function within a function

2012-05-03 Thread Marie Auger-Methe
Thank you for your prompt response! Sorry, this was more a C++ question. I'm still having a hard time to disentangle all of these methods and languages. It worked! I have included below the .R, .h, and .cpp files of the fx from my previous e-mail. Just to help the next newbie ;) . Thanks!