[Rcpp-devel] using SparseSuite and RcppEigen in package
I think it is worth asking Martin Maechler if he could expose more SuiteSparse functionality through the Matrix package. Martyn
On Wed, 2018-01-17 at 15:06 +0100, Simon Barthelm? wrote:
Hi Dirk, Thanks for your suggestion - I had thought of doing that but it requires tracking the versions of SuiteSparse used by Matrix, which means extra maintenance work. OTOH maybe updates are rare enough that it's not worth worrying about. It'd be nice if Matrix could expose more of SuiteSparse, though, I'm sure I'm not the only one who needs that stuff. Best Simon Le 17/01/2018 ? 13:35, Dirk Eddelbuettel a ?crit :
On 17 January 2018 at 13:10, Simon Barthelm? wrote:
I'm trying to use some CHOLMOD functionality inside an R package (specifically, sparse Cholesky updates/downdates). There's an CHOLMOD/Eigen interface for that, but unfortunately the header I need is not shipped as part of either the Matrix package or the Rcpp package. The file is cholmod_modify.h, and it does appear in the src/ directory of the Matrix package, but not in the include/ directory. If I include it by hand I risk version conflicts, because the rest of CHOLMOD is provided by the Matrix package via RcppEigen. What's the clean way of handling that? Thanks for your input!
I know "some" (eg rstan) have completemented the BH package with local headers when BH was missing what they needed (as BH grew, I think we by now added all they need). So you could just do that, being careful to stick with the same version. Or would Yixuan's RSpectra help? https://cran.r-project.org/package=RSpectra Dirk
_______________________________________________ Rcpp-devel mailing list Rcpp-devel at lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel