mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-02-23 18:20:47 +08:00
bugfix in LDLt for size==1
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user