Re: [Rcpp-devel] Looping over the parameters of a function

2014-04-08 Thread Dirk Eddelbuettel
On 8 April 2014 at 16:41, Petre Caraiani wrote: | I have a code in C which computes the root of a function using the Brent | algorithm. The code is attached below. I provided the full code but you can | focus on the function definition and the main program. I can call this program | from R. What I

[Rcpp-devel] Looping over the parameters of a function

2014-04-08 Thread Petre Caraiani
Hello everybody, I have a code in C which computes the root of a function using the Brent algorithm. The code is attached below. I provided the full code but you can focus on the function definition and the main program. I can call this program from R. What I am interested in is looping over the pa