diff options
author | Gael Guennebaud <g.gael@free.fr> | 2009-09-15 11:16:58 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2009-09-15 11:16:58 +0200 |
commit | d5319f4ba8709d093cebfdf3030e26d5f4b9de4e (patch) | |
tree | df955c1c7d5a02835b6e701e42501eae5198acb1 /Eigen/src/Core/StableNorm.h | |
parent | 9f14d7292799b5e73c64602a92744af76a0a5aec (diff) |
fix warning in stable norm
Diffstat (limited to 'Eigen/src/Core/StableNorm.h')
-rw-r--r-- | Eigen/src/Core/StableNorm.h | 2 |
1 files changed, 1 insertions, 1 deletions
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<Derived>::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 |