[Rcpp-devel] Using sparse matrices from the Matrix package in Rcpp
bates at stat.wisc.edu
Mon Jun 25 17:36:47 CEST 2012
On Sun, Jun 24, 2012 at 1:19 PM, Dirk Eddelbuettel <edd at debian.org> wrote:
> On 24 June 2012 at 19:56, Glenn Lawyer wrote:
> | I would suggest using the eigen library, Rccp has an interface to this.
> | Alternately, you could link to the boost graph library.
> Spot on.
> It was in fact the availability of (more) sparse matrix methods (even though
> they were (are ?) under development and not fully mature) that lead Doug from
> Armadillo to Eigen. I am sure he will follow-up here too.
Indeed. There is good support for sparse matrices in Eigen including
the use of the Cholmod functions from the Matrix package, although the
latter requires a bit of effort.
With the release of Eigen 3.1 today, sparse matrices are now a
supported part of Eigen. I have not yet incorporated Eigen 3.1 into
RcppEigen but will do so.
> Boost Graph is interesting as CRAN had the RBGL package to access it for such
> a long time. It would be nice if someone looked more closely if we can in
> fact add appropriate as<>() and wrap() methods/functions to make interfacing
> this library more easy / more accessible from R.
> Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com
> Rcpp-devel mailing list
> Rcpp-devel at lists.r-forge.r-project.org
More information about the Rcpp-devel