Re: [Rcpp-devel] problem compiling with const in RcppEigen

2013-02-01 Thread Dirk Eddelbuettel
On 1 February 2013 at 10:26, M A wrote: | The fundamental problem is, as you said, that RcppEigen doesn't know | how to form an Eigen::Map with the as function. Templates are initiated by the compiler based on what is available. This fails as nobody wrote one with this 'const' signature. Now, i

Re: [Rcpp-devel] problem compiling with const in RcppEigen

2013-02-01 Thread M A
Yes, I can understand why it's not clear what the Cm_class is for (I did take out all the linear algebra and other parts of the class). That is, after all, a consequence of creating a minimal example. And, I am also happy to declare functions as you do. The point is, though, that the typedef used i

[Rcpp-devel] Patch: MatrixRow::iterator post-incr and -decr

2013-02-01 Thread North, Ben
Hi, I was having trouble iterating through the elements of a MatrixRow, and tracked it down to the following, which I think is a bug in Rcpp. The post-increment and post-decrement operators within MatrixRow::iterator currently return the new state of the iterator, whereas they should return the o