mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
bugfix in LDLt for size==1
This commit is contained in:
@@ -127,6 +127,8 @@ void LDLT<MatrixType>::compute(const MatrixType& a)
|
||||
m_matrix = a;
|
||||
|
||||
if (size <= 1) {
|
||||
m_p.setZero();
|
||||
m_transpositions.setZero();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user