Dear all.
I write C++ programs and I'm currently trying to interface them with R.
I have two issues :
Is it possible to interface a function which has an argument that is a pointer
(standing for an array) ?
I also wrote a function whose aim is to allocate (and fill) an array of values.
I
Hi, Mounia,
In Rcpp, using std::vector is preferred.
It is still possible to use pointers, however, I am afraid you need to
write your "as" and "wrap" by yourself. You can find how to develop them in
our documents.
Best,
Qiang Kou
On Thu, Sep 13, 2018 at 4:15 AM Mounia ZAOUCHE <
mounia.zaou...
On 13 September 2018 at 08:51, Qiang Kou wrote:
| Hi, Mounia,
|
| In Rcpp, using std::vector is preferred.
Building on what Qiang said: If your array is a simple double[] then you can
switch to std::vector easily as aligning your array with the internal
array. (Ditto for most other arrays of ba
I am developing a simulation model in C++ and I want to expose it to R for
testing. The model is in a C++ class and uses the boost::odeint library for
numerical integration. I am also using an unordered_map to expose the model
variables to the user.
I am having some trouble exposing the class fu