From ce09b4ddfc3063d065143463123bacf53e19a9d3 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Sun, 25 Apr 2010 17:10:28 -0400 Subject: [PATCH] compile --- Eigen/src/Core/Coeffs.h | 2 +- unsupported/Eigen/src/NonLinearOptimization/covar.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Eigen/src/Core/Coeffs.h b/Eigen/src/Core/Coeffs.h index d27a830dc..b26f3a4e4 100644 --- a/Eigen/src/Core/Coeffs.h +++ b/Eigen/src/Core/Coeffs.h @@ -1,7 +1,7 @@ // This file is part of Eigen, a lightweight C++ template library // for linear algebra. // -// Copyright (C) 2006-2008 Benoit Jacob +// Copyright (C) 2006-2010 Benoit Jacob // // Eigen is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public diff --git a/unsupported/Eigen/src/NonLinearOptimization/covar.h b/unsupported/Eigen/src/NonLinearOptimization/covar.h index 97709a6a6..7cfaa22d4 100644 --- a/unsupported/Eigen/src/NonLinearOptimization/covar.h +++ b/unsupported/Eigen/src/NonLinearOptimization/covar.h @@ -12,7 +12,7 @@ void ei_covar( /* Function Body */ const int n = r.cols(); - const Scalar tolr = tol * ei_abs(r[0]); + const Scalar tolr = tol * ei_abs(r(0,0)); Matrix< Scalar, Dynamic, 1 > wa(n); assert(ipvt.size()==n);