Re: [Rcpp-devel] Dispatch on sparse and dense matrices...

2013-12-08 Thread Kevin Ushey
Or are there > facilities for that? > > Cheers > Søren > > > -Original Message- > From: Dirk Eddelbuettel [mailto:[email protected]] > Sent: 8. december 2013 22:59 > To: Søren Højsgaard > Cc: [email protected] > Subject: Re: [Rcpp-devel]

Re: [Rcpp-devel] Dispatch on sparse and dense matrices...

2013-12-08 Thread Søren Højsgaard
- From: Dirk Eddelbuettel [mailto:[email protected]] Sent: 8. december 2013 22:59 To: Søren Højsgaard Cc: [email protected] Subject: Re: [Rcpp-devel] Dispatch on sparse and dense matrices... Hi Søren, On 8 December 2013 at 21:47, Søren Højsgaard wrote: | Dear all, | | I want to

Re: [Rcpp-devel] Dispatch on sparse and dense matrices...

2013-12-08 Thread Dirk Eddelbuettel
Hi Søren, On 8 December 2013 at 21:47, Søren Højsgaard wrote: | Dear all, | | I want to do some computation on a matrix, irrespective of whether it is a numeric matrix, an integer matrix or a sparse matrix (a dgCMatrix which can be handled with RcppEigen). For simplicity, I want to compute the

[Rcpp-devel] Dispatch on sparse and dense matrices...

2013-12-08 Thread Søren Højsgaard
Dear all, I want to do some computation on a matrix, irrespective of whether it is a numeric matrix, an integer matrix or a sparse matrix (a dgCMatrix which can be handled with RcppEigen). For simplicity, I want to compute the sum of the elements. To do so I use a template template SEXP do