Re: [Rcpp-devel] Rcpp syntactic sugar equivalent for R's optimize() function

2014-03-01 Thread Dirk Eddelbuettel
On 1 March 2014 at 16:12, Matt D. wrote: | On 2/27/2014 21:02, Dirk Eddelbuettel wrote: | > | > Last time I neeed a 1-d solver, I just quicky coded one up, based on another | > implementation of Brent's method. That was a one-off and at work, but it | > really isn't that involved. | | For 1-D so

Re: [Rcpp-devel] Rcpp syntactic sugar equivalent for R's optimize() function

2014-03-01 Thread Matt D.
On 2/27/2014 21:02, Dirk Eddelbuettel wrote: Last time I neeed a 1-d solver, I just quicky coded one up, based on another implementation of Brent's method. That was a one-off and at work, but it really isn't that involved. For 1-D solvers (gradient-based & derivative-free root-finding, as wel

Re: [Rcpp-devel] Rcpp syntactic sugar equivalent for R's optimize() function

2014-02-28 Thread Smith, Dale (Norcross)
boun...@r-forge.wu-wien.ac.at [mailto:rcpp-devel-boun...@r-forge.wu-wien.ac.at] On Behalf Of Dirk Eddelbuettel Sent: Friday, February 28, 2014 7:14 AM To: Gregor Kastner Cc: rcpp-de...@r-forge.wu-wien.ac.at Subject: Re: [Rcpp-devel] Rcpp syntactic sugar equivalent for R's optimize() function On

Re: [Rcpp-devel] Rcpp syntactic sugar equivalent for R's optimize() function

2014-02-28 Thread Romain Francois
Le 28 févr. 2014 à 11:52, Gregor Kastner a écrit : > Hi Hideyoshi, > >> Is there a way I can just call that function in Rcpp rather than having to >> install new libraries or create my own? (I presume that there is probably a >> “C_do_fmin.c” file somewhere that I can use?) > > This questions

Re: [Rcpp-devel] Rcpp syntactic sugar equivalent for R's optimize() function

2014-02-28 Thread Dirk Eddelbuettel
On 28 February 2014 at 11:52, Gregor Kastner wrote: | Hi Hideyoshi, | | > Is there a way I can just call that function in Rcpp rather than having to | > install new libraries or create my own? (I presume that there is probably a | > “C_do_fmin.c” file somewhere that I can use?) | | This question

Re: [Rcpp-devel] Rcpp syntactic sugar equivalent for R's optimize() function

2014-02-28 Thread Gregor Kastner
Hi Hideyoshi, > Is there a way I can just call that function in Rcpp rather than having to > install new libraries or create my own? (I presume that there is probably a > “C_do_fmin.c” file somewhere that I can use?) This questions has been discussed in this list about a month ago: http://r.7896

Re: [Rcpp-devel] Rcpp syntactic sugar equivalent for R's optimize() function

2014-02-28 Thread Hideyoshi Maeda
I have just noticed that optimize() is already a C function, as is suggested below: > stats::optimize function (f, interval, ..., lower = min(interval), upper = max(interval), maximum = FALSE, tol = .Machine$double.eps^0.25) { if (maximum) { val <- .External2(C_do_fmin, function

Re: [Rcpp-devel] Rcpp syntactic sugar equivalent for R's optimize() function

2014-02-27 Thread Dirk Eddelbuettel
Last time I neeed a 1-d solver, I just quicky coded one up, based on another implementation of Brent's method. That was a one-off and at work, but it really isn't that involved. Otherwise, please do look around at CRAN. There are now 176 packages using Rcpp, and quite a few use, or implement, op

Re: [Rcpp-devel] Rcpp syntactic sugar equivalent for R's optimize() function

2014-02-27 Thread Smith, Dale (Norcross)
syntactic sugar equivalent for R's optimize() function Hi Rcpp-devel list, I was wondering if there was a Rcpp equivalent function for R's optimise() function thats in the stats package? If not, since Its a single vector optimisation are there some existing libraries i can use withi

[Rcpp-devel] Rcpp syntactic sugar equivalent for R's optimize() function

2014-02-27 Thread Hideyoshi Maeda
Hi Rcpp-devel list, I was wondering if there was a Rcpp equivalent function for R’s optimise() function thats in the stats package? If not, since Its a single vector optimisation are there some existing libraries i can use within Rcpp that someone can point me to? Regards, HLM ___