25 string ISAM2DoglegParams::adaptationModeTranslator(
29 switch (adaptationMode) {
30 case DoglegOptimizerImpl::SEARCH_EACH_ITERATION:
31 s =
"SEARCH_EACH_ITERATION";
33 case DoglegOptimizerImpl::ONE_STEP_PER_ITERATION:
34 s =
"ONE_STEP_PER_ITERATION";
45 ISAM2DoglegParams::adaptationModeTranslator(
46 const string& adaptationMode)
const {
47 string s = adaptationMode;
50 if (
s ==
"SEARCH_EACH_ITERATION")
51 return DoglegOptimizerImpl::SEARCH_EACH_ITERATION;
52 if (
s ==
"ONE_STEP_PER_ITERATION")
53 return DoglegOptimizerImpl::ONE_STEP_PER_ITERATION;
56 return DoglegOptimizerImpl::SEARCH_EACH_ITERATION;
65 if (
s ==
"QR")
return ISAM2Params::QR;
66 if (
s ==
"CHOLESKY")
return ISAM2Params::CHOLESKY;
69 return ISAM2Params::CHOLESKY;
73 string ISAM2Params::factorizationTranslator(
80 case ISAM2Params::CHOLESKY: