mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
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:
@@ -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.) {
|
||||
|
||||
Reference in New Issue
Block a user