From nashjc at uottawa.ca  Wed Oct 22 14:18:01 2014
From: nashjc at uottawa.ca (Prof J C Nash (U30A))
Date: Wed, 22 Oct 2014 08:18:01 -0400
Subject: [Rd]  How can I use R-function in My C++ project ? (using optim)
In-Reply-To: <mailman.27.1413972008.5560.r-devel@r-project.org>
References: <mailman.27.1413972008.5560.r-devel@r-project.org>
Message-ID: <5447A079.1050905@uottawa.ca>

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]]



[Rd] How can I use R-function in My C++ project ? (using optim)
Prof J C Nash (U30A