From 1403cea087df98dae21408518c33a22f8d2d99d1 Mon Sep 17 00:00:00 2001 From: Thomas Capricelli Date: Tue, 26 Jan 2010 04:55:36 +0100 Subject: [PATCH] =?UTF-8?q?fix=20a=20bug=20introduced=20between=20the=20cm?= =?UTF-8?q?inpack=20version=20of=20Manolis=20Lourakis=20and=20the=20one=20?= =?UTF-8?q?from=20Fr=C3=A9d=C3=A9ric=20Devernay.=20Here,=20we=20want=20to?= =?UTF-8?q?=20compute=20the=20max=20over=20the=20column,=20the=20-1=20is?= =?UTF-8?q?=20not=20needed=20in=20fortran=20because=20indices=20start=20at?= =?UTF-8?q?=201,=20contrary=20to=20c/c++.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- unsupported/Eigen/src/NonLinearOptimization/dogleg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.)