Fix several uninitialized member from ctor

This commit is contained in:
Gael Guennebaud
2018-11-23 15:10:28 +01:00
parent a476054879
commit a7842daef2
9 changed files with 57 additions and 16 deletions

View File

@@ -110,7 +110,7 @@ public:
* The default constructor is useful in cases in which the user intends to
* perform decompositions via BDCSVD::compute(const MatrixType&).
*/
BDCSVD() : m_algoswap(16), m_numIters(0)
BDCSVD() : m_algoswap(16), m_isTranspose(false), m_compU(false), m_compV(false), m_numIters(0)
{}

View File

@@ -245,6 +245,10 @@ protected:
: m_isInitialized(false),
m_isAllocated(false),
m_usePrescribedThreshold(false),
m_computeFullU(false),
m_computeThinU(false),
m_computeFullV(false),
m_computeThinV(false),
m_computationOptions(0),
m_rows(-1), m_cols(-1), m_diagSize(0)
{