Merge branch 'fix_constructor' into feature/CeresDefaults
commit
9f209e441f
|
@ -136,10 +136,7 @@ public:
|
||||||
VectorValues hessianDiagonal; //< we only update hessianDiagonal when reuseDiagonal = false
|
VectorValues hessianDiagonal; //< we only update hessianDiagonal when reuseDiagonal = false
|
||||||
bool reuseDiagonal; ///< an additional option in Ceres for diagonalDamping
|
bool reuseDiagonal; ///< an additional option in Ceres for diagonalDamping
|
||||||
|
|
||||||
LevenbergMarquardtState() :
|
LevenbergMarquardtState() {} // used in LM constructor but immediately overwritten
|
||||||
reuseDiagonal(false) {
|
|
||||||
initTime();
|
|
||||||
}
|
|
||||||
|
|
||||||
void initTime() {
|
void initTime() {
|
||||||
startTime = boost::posix_time::microsec_clock::universal_time();
|
startTime = boost::posix_time::microsec_clock::universal_time();
|
||||||
|
@ -153,7 +150,7 @@ protected:
|
||||||
const Values& initialValues, const LevenbergMarquardtParams& params,
|
const Values& initialValues, const LevenbergMarquardtParams& params,
|
||||||
unsigned int iterations = 0) :
|
unsigned int iterations = 0) :
|
||||||
NonlinearOptimizerState(graph, initialValues, iterations), lambda(
|
NonlinearOptimizerState(graph, initialValues, iterations), lambda(
|
||||||
params.lambdaInitial), totalNumberInnerIterations(0) {
|
params.lambdaInitial), totalNumberInnerIterations(0),reuseDiagonal(false) {
|
||||||
initTime();
|
initTime();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue