ceres-package: An Interface to 'Ceres Solver'

ceres-packageR Documentation

An Interface to 'Ceres Solver'

Description

Bundles the 'Ceres Solver' C++ library for non-linear least squares and general unconstrained optimization, built from source with Eigen from RcppEigen, and makes it available to C++ code compiled with Rcpp.

Details

A .cpp file containing // [[Rcpp::depends(ceres)]] and #include <ceres.h> can be compiled with sourceCpp; see the files in system.file("examples", package = "ceres"). Other packages can link to Ceres with the flags from CxxFlags and LdFlags.

Ceres is built with its own minimal logging library (‘miniglog’) in place of glog and gflags. Log messages are printed with REprintf(), and fatal errors (e.g. a failed CHECK) throw a C++ exception that Rcpp turns into an R error.

Author(s)

Satyaprakash Nayak.

Maintainer: Satyaprakash Nayak <satyaprakash.nayak@gmail.com>

References

Sameer Agarwal, Keir Mierle and The Ceres Solver Team. Ceres Solver. https://github.com/ceres-solver/ceres-solver

See Also

ceres_nls, ceres_helloworld, CxxFlags

Examples

ceres_helloworld(0.5)

ceres documentation built on Nov. 28, 2026, 1:07 a.m.