From d5319f4ba8709d093cebfdf3030e26d5f4b9de4e Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Tue, 15 Sep 2009 11:16:58 +0200 Subject: [PATCH] fix warning in stable norm --- Eigen/src/Core/StableNorm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/Core/StableNorm.h b/Eigen/src/Core/StableNorm.h index 77fe79782..facab9dbd 100644 --- a/Eigen/src/Core/StableNorm.h +++ b/Eigen/src/Core/StableNorm.h @@ -56,7 +56,7 @@ MatrixBase::stableNorm() const { const int blockSize = 4096; RealScalar scale = 0; - RealScalar invScale; + RealScalar invScale = 1; RealScalar ssq = 0; // sum of square enum { Alignment = (int(Flags)&DirectAccessBit) || (int(Flags)&AlignedBit) ? ForceAligned : AsRequested