This commit is contained in:
Thomas Capricelli
2009-08-25 14:03:30 +02:00
parent d880e6f774
commit a736378331
3 changed files with 8 additions and 10 deletions

View File

@@ -351,6 +351,7 @@ void testHybrd1()
{
int n=9, info;
VectorXd x(n), fvec(n);
MatrixXd fjac;
/* the following starting values provide a rough solution. */
x.setConstant(n, -1.);
@@ -358,7 +359,7 @@ void testHybrd1()
// do the computation
hybrd_functor functor;
HybridNonLinearSolverNumericalDiff <hybrd_functor,double> solver(functor);
info = solver.solve(x, fvec);
info = solver.solve(x, fvec, fjac);
// check return value
VERIFY( 1 == info);