mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 16:40:38 +08:00
Add support for up to 10 parameters in Problem
Following the last commit, which extends the number of parameters blocks autodiff can accept, the interface of Problem::AddResidualBlock is extended to accept up to 10 parameter blocks. Change-Id: I162c3d1b1868fdda32c1522d57e9a211a9c02f90
This commit is contained in:
@@ -208,6 +208,27 @@ class Problem {
|
||||
LossFunction* loss_function,
|
||||
double* x0, double* x1, double* x2,
|
||||
double* x3, double* x4, double* x5);
|
||||
ResidualBlockId AddResidualBlock(CostFunction* cost_function,
|
||||
LossFunction* loss_function,
|
||||
double* x0, double* x1, double* x2,
|
||||
double* x3, double* x4, double* x5,
|
||||
double* x6);
|
||||
ResidualBlockId AddResidualBlock(CostFunction* cost_function,
|
||||
LossFunction* loss_function,
|
||||
double* x0, double* x1, double* x2,
|
||||
double* x3, double* x4, double* x5,
|
||||
double* x6, double* x7);
|
||||
ResidualBlockId AddResidualBlock(CostFunction* cost_function,
|
||||
LossFunction* loss_function,
|
||||
double* x0, double* x1, double* x2,
|
||||
double* x3, double* x4, double* x5,
|
||||
double* x6, double* x7, double* x8);
|
||||
ResidualBlockId AddResidualBlock(CostFunction* cost_function,
|
||||
LossFunction* loss_function,
|
||||
double* x0, double* x1, double* x2,
|
||||
double* x3, double* x4, double* x5,
|
||||
double* x6, double* x7, double* x8,
|
||||
double* x9);
|
||||
|
||||
// Add a parameter block with appropriate size to the problem.
|
||||
// Repeated calls with the same arguments are ignored. Repeated
|
||||
|
||||
Reference in New Issue
Block a user