1
0
mirror of https://gitlab.com/libeigen/eigen.git synced 2025-09-19 12:53:20 +08:00

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

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