[Rd] How can I use R-function in My C++ project ? (using optim)
Prof J C Nash (U30A)
nashjc at uottawa.ca
Wed Oct 22 14:18:01 CEST 2014
As the author of 3 of the 5 methods in optim, I think you may be wasting
your time if this is for performance. My reasons are given in
http://www.jstatsoft.org/v60/i02
Note that most of the speed benefits of compilation are found in the
objective and gradient function, with generally more minor improvements
in the method.
JN
On 14-10-22 06:00 AM, r-devel-request at r-project.org wrote:
> Date: Tue, 21 Oct 2014 20:14:03 +0800 (CST)
> From: ?? <2012111007 at njau.edu.cn>
> To: R-devel at r-project.org
> Subject: [Rd] How can I use R-function in My C++ project ?
> Message-ID: <1f74c14.d1e7.14932a0ddbf.Coremail.2012111007 at njau.edu.cn>
> Content-Type: text/plain; charset="UTF-8"
>
> Dear seniors:
> I am a student in Nanjing Agricultural University of China.
>
>
> I want to use the function "optim" of package stats in my C++ project. I have got the R.dll , R.def and R.lib,
>
>
> but I can't find the function prototypes of "optim" in R.def.
>
> How can I do ? Is the Method I call R function in C++ with R.dll feasible ? I hope to get your help ! Thanks
>
>
> for reading my question.
>
>
> Yours sincerely,
>
>
> Bo Huang
> [[alternative HTML version deleted]]
More information about the R-devel
mailing list