GCElin_objFunct: Set of functions in example RcppEigen package

View source: R/RcppExports.R

Objective-and-Gradent_FunctionsR Documentation

Set of functions in example RcppEigen package

Description

These two functions are created for optimization.

Usage

GCElin_objFunct()
GCElin_gradFunct()

Details

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.

Value

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.

Author(s)

Marco Sandri

References

See the documentation for Eigen, and RcppEigen, for more details.

Examples

  x <- sqrt(1:4)
  rcppeigen_innerproduct(x)
  rcppeigen_outerproduct(x)

gcemodels/GCEmodels documentation built on Aug. 10, 2024, 1:58 a.m.