Loading...
Searching...
No Matches
Ceres.h
Go to the documentation of this file.
1// SPDX-License-Identifier: MIT
2// Copyright (c) gpridge developers
3// See LICENSE for details.
4
5#ifndef GPR_ML_CERES_H_
6#define GPR_ML_CERES_H_
7
8#include <Eigen/Dense>
9
12
13namespace funcmin {
14
22class Ceres {
23public:
24 Ceres();
25 virtual ~Ceres();
27
28 template <typename ClassName, typename FuncName>
29 void optimize(const gpr::EigenMatrix& x_data, const Eigen::VectorXd& x_ind,
30 const Eigen::VectorXd& y, Eigen::VectorXd& w,
31 FuncName func_to_min, ClassName& holder, double);
32
33 inline void setAlgorithmSettings(
34 const gpr::CeresOptimizationSettings& _settings);
35
36private:
38};
39
40} // namespace funcmin
41
42#ifdef USE_CERES
43#include "Ceres.inl"
44#endif
45
46#endif // GPR_ML_CERES_H_
@ y
Definition Enums.h:28
void optimize(const gpr::EigenMatrix &x_data, const Eigen::VectorXd &x_ind, const Eigen::VectorXd &y, Eigen::VectorXd &w, FuncName func_to_min, ClassName &holder, double)
Definition Ceres.inl:93
void setAlgorithmSettings(const gpr::CeresOptimizationSettings &_settings)
Definition Ceres.inl:140
virtual ~Ceres()
Definition Ceres.cpp:15
bool failedOptim
Definition Ceres.h:26
Eigen::Matrix< double, EigenDynamic, EigenDynamic, EigenMatrixStorage > EigenMatrix
Definition Macros.h:20
Ceres-specific settings (currently only the common fields).
Definition Structures.h:347