Objective-and-Gradent_Functions | R Documentation |
These two functions are created for optimization.
GCElin_objFunct()
GCElin_gradFunct()
These are example functions which should be largely self-explanatory. Their main benefit is to demonstrate how to write a function using the Eigen C++ classes, and to have to such a function accessible from R.
GCElin_objFunct()
does not return a value, but displays a
message to the console.
GCElin_gradFunct()
returns a numeric matrix computed as the
outer (vector) product of x
.
Marco Sandri
See the documentation for Eigen, and RcppEigen, for more details.
x <- sqrt(1:4)
rcppeigen_innerproduct(x)
rcppeigen_outerproduct(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.