diff options
author | Igor Krivenko <anonymous@invalid.net> | 2011-12-09 23:38:41 +0100 |
---|---|---|
committer | Igor Krivenko <anonymous@invalid.net> | 2011-12-09 23:38:41 +0100 |
commit | 36457178f9d12481e699d07c0ac8d25a7e6a854f (patch) | |
tree | e9b12b3ed7e4102fcf1d0c4384fec3c1d4c94f37 /Eigen/src/Core/StableNorm.h | |
parent | d400a6245ec0d86b0e3dd2af30e49349ae28b0f0 (diff) |
bug #352:properly cast constants
Diffstat (limited to 'Eigen/src/Core/StableNorm.h')
-rw-r--r-- | Eigen/src/Core/StableNorm.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Eigen/src/Core/StableNorm.h b/Eigen/src/Core/StableNorm.h index f667272e4..046d9d162 100644 --- a/Eigen/src/Core/StableNorm.h +++ b/Eigen/src/Core/StableNorm.h @@ -58,9 +58,9 @@ MatrixBase<Derived>::stableNorm() const { using std::min; const Index blockSize = 4096; - RealScalar scale = 0; - RealScalar invScale = 1; - RealScalar ssq = 0; // sum of square + RealScalar scale(0); + RealScalar invScale(1); + RealScalar ssq(0); // sum of square enum { Alignment = (int(Flags)&DirectAccessBit) || (int(Flags)&AlignedBit) ? 1 : 0 }; |