aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/SVD
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2009-08-09 17:18:42 +0200
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2009-08-09 17:18:42 +0200
commit8e086801196a251c013479de51e6cdaa5f595a9b (patch)
tree0d9ffaffeb4dc6413d0764f52ed2a4a7975e97c2 /Eigen/src/SVD
parent3ed83fa6813bd1401adce03a87ad452661d72f5e (diff)
don't depend on uninitialized value
Diffstat (limited to 'Eigen/src/SVD')
-rw-r--r--Eigen/src/SVD/JacobiSquareSVD.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Eigen/src/SVD/JacobiSquareSVD.h b/Eigen/src/SVD/JacobiSquareSVD.h
index e9ecc89ac..ad55735fc 100644
--- a/Eigen/src/SVD/JacobiSquareSVD.h
+++ b/Eigen/src/SVD/JacobiSquareSVD.h
@@ -1,7 +1,7 @@
// This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
-// Copyright (C) 2008-2009 Benoit Jacob <jacob.benoit.1@gmail.com>
+// Copyright (C) 2009 Benoit Jacob <jacob.benoit.1@gmail.com>
//
// Eigen is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
@@ -62,7 +62,7 @@ template<typename MatrixType, bool ComputeU, bool ComputeV> class JacobiSquareSV
JacobiSquareSVD() : m_isInitialized(false) {}
- JacobiSquareSVD(const MatrixType& matrix)
+ JacobiSquareSVD(const MatrixType& matrix) : m_isInitialized(false)
{
compute(matrix);
}
@@ -165,5 +165,6 @@ void JacobiSquareSVD<MatrixType, ComputeU, ComputeV>::compute(const MatrixType&
}
}
}
+ m_isInitialized = true;
}
#endif // EIGEN_JACOBISQUARESVD_H