mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
NonLinearOptimization : clean 'mode' handling from the old minpack code :
* this is actually a boolean, not an int * use a better name * can be set at initialization time instead of bloating all methods signatures
This commit is contained in:
@@ -317,7 +317,8 @@ void testHybrj()
|
||||
hybrj_functor functor;
|
||||
HybridNonLinearSolver<hybrj_functor> solver(functor);
|
||||
solver.diag.setConstant(n, 1.);
|
||||
info = solver.solve(x, 2);
|
||||
solver.useExternalScaling = true;
|
||||
info = solver.solve(x);
|
||||
|
||||
// check return value
|
||||
VERIFY( 1 == info);
|
||||
@@ -401,7 +402,8 @@ void testHybrd()
|
||||
solver.parameters.nb_of_subdiagonals = 1;
|
||||
solver.parameters.nb_of_superdiagonals = 1;
|
||||
solver.diag.setConstant(n, 1.);
|
||||
info = solver.solveNumericalDiff(x, 2);
|
||||
solver.useExternalScaling = true;
|
||||
info = solver.solveNumericalDiff(x);
|
||||
|
||||
// check return value
|
||||
VERIFY( 1 == info);
|
||||
|
||||
Reference in New Issue
Block a user