mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
merge both c methods hybrd/hybrd1 into one class HybridNonLinearSolver with
two methods.
This commit is contained in:
@@ -352,7 +352,9 @@ void testHybrd1()
|
||||
x.setConstant(n, -1.);
|
||||
|
||||
// do the computation
|
||||
info = ei_hybrd1(hybrd_functor(), x, fvec);
|
||||
hybrd_functor functor;
|
||||
HybridNonLinearSolver <hybrd_functor,double> solver(functor);
|
||||
info = solver.solve(x, fvec);
|
||||
|
||||
// check return value
|
||||
VERIFY( 1 == info);
|
||||
@@ -382,7 +384,9 @@ void testHybrd()
|
||||
diag.setConstant(n, 1.);
|
||||
|
||||
// do the computation
|
||||
info = ei_hybrd(hybrd_functor(), x,fvec, nfev, fjac, R, qtf, diag, mode, ml, mu);
|
||||
hybrd_functor functor;
|
||||
HybridNonLinearSolver <hybrd_functor,double> solver(functor);
|
||||
info = solver.solve(x,fvec, nfev, fjac, R, qtf, diag, mode, ml, mu);
|
||||
|
||||
// check return value
|
||||
VERIFY( 1 == info);
|
||||
|
||||
Reference in New Issue
Block a user