Antonio Coppola edited C++ Functions.tex  over 9 years ago

Commit id: c47e81917c648aeacf6e6834b3085a5c91d80bec

deletions | additions      

       

\section{Implementing the Objective and Gradient in C++}  \subsection{The Basics}  The package supports the implementation of the objective and gradient functions in C++, which may yield significant speed improvements over the respective R implementations. The optimization routine's API accepts both R function objects and external pointers to compiled C++ functions. To perform optimization on the Rosenbrock function, we begin by defining the C++ implementations of the objective and of the gradient as character strings, using the RCPP library:  \begin{lstlisting}