From 4c85fa8c734c8d103343c163fe95e9ffdeb9f5aa Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Mon, 20 Jul 2009 10:57:31 +0200 Subject: [PATCH] compilation fix (sun CC) --- Eigen/src/Core/StableNorm.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Eigen/src/Core/StableNorm.h b/Eigen/src/Core/StableNorm.h index 383c64f01..22809633d 100644 --- a/Eigen/src/Core/StableNorm.h +++ b/Eigen/src/Core/StableNorm.h @@ -115,17 +115,17 @@ MatrixBase::blueNorm() const ei_assert(false && "the algorithm cannot be guaranteed on this computer"); } iexp = -((1-iemin)/2); - b1 = std::pow(ibeta, iexp); // lower boundary of midrange + b1 = std::pow(double(ibeta),iexp); // lower boundary of midrange iexp = (iemax + 1 - it)/2; - b2 = std::pow(ibeta,iexp); // upper boundary of midrange + b2 = std::pow(double(ibeta),iexp); // upper boundary of midrange iexp = (2-iemin)/2; - s1m = std::pow(ibeta,iexp); // scaling factor for lower range + s1m = std::pow(double(ibeta),iexp); // scaling factor for lower range iexp = - ((iemax+it)/2); - s2m = std::pow(ibeta,iexp); // scaling factor for upper range + s2m = std::pow(double(ibeta),iexp); // scaling factor for upper range overfl = rbig*s2m; // overfow boundary for abig - eps = std::pow(ibeta, 1-it); + eps = std::pow(double(ibeta), 1-it); relerr = ei_sqrt(eps); // tolerance for neglecting asml abig = 1.0/eps - 1.0; if (RealScalar(nbig)>abig) nmax = abig; // largest safe n