[Rcpp-devel] Using sparse matrices from the Matrix package in Rcpp

Søren Højsgaard sorenh at math.aau.dk
Sat Jun 30 08:59:04 CEST 2012

Dear Dirk,

Thanks for your answer. 

I know that inline does most of the work for me when working in the sandbox so to speak. I also know that I can create a package which forces SHLIB to do the right thing (guess the LinkingTo statement in the DESCRIPTION file is crucial here). But for creating code which can go into a package it is nice to be able to compile and test without having to compile the package over and over again. 


-----Original Message-----
From: Dirk Eddelbuettel [mailto:edd at debian.org] 
Sent: 24. juni 2012 20:19
To: Glenn Lawyer
Cc: Søren Højsgaard; rcpp-devel at r-forge.wu-wien.ac.at
Subject: Re: [Rcpp-devel] Using sparse matrices from the Matrix package in Rcpp

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.

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  

More information about the Rcpp-devel mailing list