fix tests : we perform slightly worse because we do use one more function

evaluation in our numericaldiff than what (c)minpack did
This commit is contained in:
Thomas Capricelli
2009-09-28 04:13:57 +02:00
parent d912034565
commit 7968737247
3 changed files with 11 additions and 9 deletions

View File

@@ -74,6 +74,7 @@ public:
val1.resize(Functor::values());
val2.resize(Functor::values());
// initialization
switch(mode) {
case Forward:
// compute f(x)
@@ -86,8 +87,7 @@ public:
assert(false);
};
/* Function Body */
// Function Body
for (int j = 0; j < n; ++j) {
h = eps * ei_abs(x[j]);
if (h == 0.) {