[Rcpp-devel] lmBenchmark broken for RcppArmadillo?

Dirk Eddelbuettel edd at debian.org
Mon Oct 20 14:16:38 CEST 2014


On 20 October 2014 at 12:26, Matt wrote:
| I've confirmed that this works on R 3.1.1 under OS X, using RcppArmadillo 
| 0.4.450.1.0:

Thanks for testing / conforming, and of course for having alterted us in the
first place -- I am updating the example code.

Dirk
| 
| 
| diff --git a/inst/examples/lmBenchmark.R b/inst/examples/lmBenchmark.R
| 
| index 9037107..dd49375 100644
| 
| --- a/inst/examples/lmBenchmark.R
| 
| +++ b/inst/examples/lmBenchmark.R
| 
| @@ -37,7 +37,7 @@ exprs$QR <- expression(.Call("fastLm", mm, y, 1L, PACKAGE=
| "Rcp
| 
|  exprs$LLt <- expression(.Call("fastLm", mm, y, 3L, PACKAGE="RcppEigen"))
| 
|  
| 
|  if (suppressMessages(require("RcppArmadillo", character=TRUE, quietly=TRUE)))
| {
| 
| -    exprs$arma <- expression(.Call("fastLm", mm, y, PACKAGE="RcppArmadillo"))
| 
| +    exprs$arma <- expression(.Call("RcppArmadillo_fastLm", mm, y, PACKAGE=
| "Rcpp
| 
|  }
| 
|  
| 
|  if (suppressMessages(require("RcppGSL", character=TRUE, quietly=TRUE))) {
| 

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org


More information about the Rcpp-devel mailing list