Re: [Rcpp-devel] Sparse matrix and RcppEigen

2015-06-09 Thread Balamuta, James Joseph
Regarding the code not compiling…. Try: src <- ' using Eigen::Map; using Eigen::SparseMatrix; using Eigen::LLT; const SparseMatrix Omega(as >(Omegas)); const SparseMatrix invSqrtV(as >(invSqrtVs)); // First solver associated with Omega matrix (taken w.r.t to Upper triangular view) Eigen::Simpl

Re: [Rcpp-devel] optionally linking to external libraries

2015-06-09 Thread Dirk Eddelbuettel
On 9 June 2015 at 06:24, Dirk Eddelbuettel wrote: | | I'm trying to find a way to provide the additional functionality without | | forcing the user to install these dependencies. On Linux/Mac a possible | | way to do that would be to use autoconf, but from what I read Windows | | support is goi

Re: [Rcpp-devel] Sparse matrix and RcppEigen

2015-06-09 Thread Wagner Bonat
Dear all, As requested I will try provide a better explanation. Consider the code below: Let C = V^{1/2}%*%Omega%*%V^{1/2} and C^{1/2} be the Cholesky decomposition, such that C^{1/2}%*%C^{1/2}^T = C. My goal is to compute Omega^{-1/2}%*%V{-1/2}. My idea is to use that I know V^{-1/2} and rewrite

Re: [Rcpp-devel] optionally linking to external libraries

2015-06-09 Thread Dirk Eddelbuettel
On 9 June 2015 at 09:38, Simon Barthelmé wrote: | Dear list, | | I've been working on an image processing package for R | (https://github.com/dahtah/imager) that uses Rcpp to provide an | interface to the CImg library. | | Cimg is contained in just one header file, which makes it easy to ship

Re: [Rcpp-devel] optionally linking to external libraries

2015-06-09 Thread Simon Barthelmé
Hi Yixuan That's very interesting, I didn't know Cairo used that trick. I'll look into it, many thanks! Simon Le 09/06/2015 10:28, Yixuan Qiu a écrit : Hi Simon, As far as I know CRAN provides all the libraries you listed except OpenCV (http://cran.r-project.org/bin/windows/contrib/ThirdPa

Re: [Rcpp-devel] optionally linking to external libraries

2015-06-09 Thread Yixuan Qiu
Hi Simon, As far as I know CRAN provides all the libraries you listed except OpenCV ( http://cran.r-project.org/bin/windows/contrib/ThirdPartySoftware.html). If you intend to publish your package to CRAN and let CRAN build the Windows version, I suppose you can directly make use of those libraries.

[Rcpp-devel] optionally linking to external libraries

2015-06-09 Thread Simon Barthelmé
Dear list, I've been working on an image processing package for R (https://github.com/dahtah/imager) that uses Rcpp to provide an interface to the CImg library. Cimg is contained in just one header file, which makes it easy to ship with an R package. It is relatively self-contained, but some