diff options
author | Thomas Capricelli <orzel@freehackers.org> | 2010-01-26 04:55:36 +0100 |
---|---|---|
committer | Thomas Capricelli <orzel@freehackers.org> | 2010-01-26 04:55:36 +0100 |
commit | 1403cea087df98dae21408518c33a22f8d2d99d1 (patch) | |
tree | 04f017875341169b45223dd78bc57014ca4dcbea /unsupported/Eigen/src/NonLinearOptimization | |
parent | 9651e0c5039e7fe20f7d296d43a8518f7297c574 (diff) |
fix a bug introduced between the cminpack version of Manolis Lourakis and
the one from Frédéric Devernay.
Here, we want to compute the max over the column, the -1 is not needed in
fortran because indices start at 1, contrary to c/c++.
Diffstat (limited to 'unsupported/Eigen/src/NonLinearOptimization')
-rw-r--r-- | unsupported/Eigen/src/NonLinearOptimization/dogleg.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unsupported/Eigen/src/NonLinearOptimization/dogleg.h b/unsupported/Eigen/src/NonLinearOptimization/dogleg.h index cf488b0bf..bbd0840ae 100644 --- a/unsupported/Eigen/src/NonLinearOptimization/dogleg.h +++ b/unsupported/Eigen/src/NonLinearOptimization/dogleg.h @@ -38,7 +38,7 @@ void ei_dogleg( for (i = 0; i <= j; ++i) { /* Computing MAX */ temp = std::max(temp,ei_abs(r[l])); - l = l + n - i; + l = l + n - i - 1; } temp = epsmch * temp; if (temp == 0.) |