Re: [Rcpp-devel] Sample function(s) for inclusion in RcppArmadillo

2013-04-12 Thread Christian Gunning
Johnathan, Thanks for formatting this, it looks great. I've added the case of without replacement, and a brief discussion of Walker's alias (that depends on the SVN version of RcppArmadillo, r4296), confirmed that it works with a local install of jekyll, and pushed it back to your github repo. Ca

Re: [Rcpp-devel] Rcpp, bigmemory, package creation

2013-04-12 Thread Jay Emerson
Or -- in all our spare time! -- we should really consider doing the right thing and Rcpp-ifying the bigmemory packages. It's probably too late for a GSOC project at this point. Mike and I will talk about it. If we think we could manage it over 2-3 intense days, maybe it will happen this summer.

Re: [Rcpp-devel] [rcpp-devel] arma::mat constructor vs Rcpp::as and interaction with .insert_col

2013-04-12 Thread Dirk Eddelbuettel
On 12 April 2013 at 07:34, Dale Smith wrote: | I did indeed read about the constructor but misinterpreted the statement - my bad. Your suggestion is a good one to try so I will benchmark my RESET test code with the various suggestions, including join as Dirk suggested. Conrad's suggestion was (

Re: [Rcpp-devel] [rcpp-devel] arma::mat constructor vs Rcpp::as and interaction with .insert_col

2013-04-12 Thread Dale Smith
I did indeed read about the constructor but misinterpreted the statement - my bad. Your suggestion is a good one to try so I will benchmark my RESET test code with the various suggestions, including join as Dirk suggested. Thanks, Dale Sent from my iPhone On Apr 11, 2013, at 11:28 PM, Conrad S

Re: [Rcpp-devel] [rcpp-devel] arma::mat constructor vs Rcpp::as and interaction with .insert_col

2013-04-12 Thread Dale Smith
Adding the intercept prior to calling fastLm is what I'm doing. The enclosed was a simple example. I'm implementing the RESET test to detect model specification errors so I need to add the square and cube of the fitted model. I am also learning Armadillo as I go. Your comments on speed are good

Re: [Rcpp-devel] Rcpp, bigmemory, package creation

2013-04-12 Thread JJ Allaire
Alex, Glad that you sorted all of this out! Wanted to also point out that there is a mechanism for bigmemory to have it's headers automatically included in RcppExports.cpp and perhaps this is something Michael can pursue so everything works automatically in the future. In short, if bigmemory defi