bugfix in LDLt for size==1

This commit is contained in:
Gael Guennebaud 2009-02-04 20:20:34 +00:00
parent 5e6707d7f7
commit 41f80b26cb

View File

@ -127,6 +127,8 @@ void LDLT<MatrixType>::compute(const MatrixType& a)
m_matrix = a;
if (size <= 1) {
m_p.setZero();
m_transpositions.setZero();
return;
}