From 84637ca58c1612c52f8e9837262ef944d47754cf Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Wed, 10 Apr 2013 09:41:42 +0200 Subject: [PATCH] Remove a useless variable in blueNorm --- Eigen/src/Core/StableNorm.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Eigen/src/Core/StableNorm.h b/Eigen/src/Core/StableNorm.h index 381feec78..f57bbb772 100644 --- a/Eigen/src/Core/StableNorm.h +++ b/Eigen/src/Core/StableNorm.h @@ -33,7 +33,6 @@ template inline typename NumTraits::Scalar>::Real blueNorm_impl(const EigenBase& _vec) { - typedef typename Derived::Scalar Scalar; typedef typename Derived::RealScalar RealScalar; typedef typename Derived::Index Index; using std::pow; @@ -47,7 +46,7 @@ blueNorm_impl(const EigenBase& _vec) if(!initialized) { int ibeta, it, iemin, iemax, iexp; - RealScalar abig, eps; + RealScalar eps; // This program calculates the machine-dependent constants // bl, b2, slm, s2m, relerr overfl // from the "basic" machine-dependent numbers @@ -75,7 +74,6 @@ blueNorm_impl(const EigenBase& _vec) overfl = rbig*s2m; // overflow boundary for abig eps = RealScalar(pow(double(ibeta), 1-it)); relerr = sqrt(eps); // tolerance for neglecting asml - abig = RealScalar(1.0/eps - 1.0); initialized = true; } Index n = vec.size();