mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 16:40:38 +08:00
Expose line search parameters in Solver::Options.
Change-Id: Ifc52980976e7bac73c8164d80518a5a19db1b79d
This commit is contained in:
@@ -193,6 +193,27 @@ bool StringToLineSearchType(string value, LineSearchType* type) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const char* LineSearchInterpolationTypeToString(
|
||||
LineSearchInterpolationType type) {
|
||||
switch (type) {
|
||||
CASESTR(BISECTION);
|
||||
CASESTR(QUADRATIC);
|
||||
CASESTR(CUBIC);
|
||||
default:
|
||||
return "UNKNOWN";
|
||||
}
|
||||
}
|
||||
|
||||
bool StringToLineSearchInterpolationType(
|
||||
string value,
|
||||
LineSearchInterpolationType* type) {
|
||||
UpperCase(&value);
|
||||
STRENUM(BISECTION);
|
||||
STRENUM(QUADRATIC);
|
||||
STRENUM(CUBIC);
|
||||
return false;
|
||||
}
|
||||
|
||||
const char* NonlinearConjugateGradientTypeToString(
|
||||
NonlinearConjugateGradientType type) {
|
||||
switch (type) {
|
||||
|
||||
Reference in New Issue
Block a user