mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 16:40:38 +08:00
Start of the new ordering API.
Change-Id: I37b0f39011f590d54962ad3e1da1f42712008f82
This commit is contained in:
@@ -42,6 +42,7 @@
|
||||
|
||||
namespace ceres {
|
||||
|
||||
class Ordering;
|
||||
class Problem;
|
||||
|
||||
// Interface for non-linear least squares solvers.
|
||||
@@ -89,6 +90,8 @@ class Solver {
|
||||
#endif
|
||||
|
||||
num_linear_solver_threads = 1;
|
||||
use_new_ordering_api = false;
|
||||
ordering_new_api = NULL;
|
||||
num_eliminate_blocks = 0;
|
||||
ordering_type = NATURAL;
|
||||
|
||||
@@ -229,6 +232,18 @@ class Solver {
|
||||
// using this setting.
|
||||
int num_linear_solver_threads;
|
||||
|
||||
// Whether the old or the new ordering API should be used. If this
|
||||
// is true, all assignments to Solve::Options::ordering_type,
|
||||
// Solver::Options::ordering and
|
||||
// Solver::Options::num_eliminate_blocks are ignored.
|
||||
bool use_new_ordering_api;
|
||||
|
||||
// Ordering object for the new ordering API. If NULL, then all
|
||||
// parameter blocks are assumed to be in the same group and the
|
||||
// solver is free to decide the best ordering. (See ordering.h for
|
||||
// more details).
|
||||
Ordering* ordering_new_api;
|
||||
|
||||
// For Schur reduction based methods, the first 0 to num blocks are
|
||||
// eliminated using the Schur reduction. For example, when solving
|
||||
// traditional structure from motion problems where the parameters are in
|
||||
|
||||
Reference in New Issue
Block a user