Re: [Rcpp-devel] Creating a std::vector of objects with const members

2011-10-06 Thread Darren Cook
> It is not a big deal in this case but I am wondering how to define the > population protocol using something like std::vector so that > elementary protocols can be added or removed but each elementary > protocol is read-only. > ... like declaring the vector as std::vector but > that doesn't seem

[Rcpp-devel] Creating a std::vector of objects with const members

2011-10-06 Thread Douglas Bates
This may be more of a C++ question than strictly an Rcpp question, in which case I guess I should finally get a stackoverflow.com login. I have a collection of objects that each consist of a NumericVector and a NumericMatrix. The collection is called a population protocol and the individual objec

Re: [Rcpp-devel] C++ code for ordinary differential equations

2011-10-06 Thread Douglas Bates
On Thu, Oct 6, 2011 at 12:23 AM, Christian Gunning wrote: >> Tst tst tst: You're loosing your Debian/Ubuntu instincts: >> >> edd@max:~$ wajig search sundials >> libsundials-cvode1 - ordinary differentialequation solver (SUNDIALS library) > ... >> edd@max:~$ >> >> Bingo, another Rcpp project in the