[Rcpp-devel] Convert R matrix to boost ublas?

Dirk Eddelbuettel edd at debian.org
Tue May 26 23:00:56 CEST 2015


On 26 May 2015 at 15:32, Charles Determan wrote:
| I have seen in the archives a discussion of converting a boost ublas matrix to
| Rcpp (http://lists.r-forge.r-project.org/pipermail/rcpp-devel/2011-June/
| 002402.html) but I didn't see anything about passing an R matrix in to a ublas
| object.  There doesn't appear to be an 'as' method for it (unless I have
| somehow overlooked it).  Any recommendations on efficiently getting an R matrix
| in to a boost ublas matrix?

Correct, as far as Rcpp is concerned uBlas is 'a new external entity' so you
would have to start with as<>() and wrap() converters.

Almost everybody I talked to about ublas "is aware" of it, yet nobody seems
to like it all that much.   Any reason Armadillo or Eigen won't do for you?

Dirk

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


More information about the Rcpp-devel mailing list