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:
parent
5e6707d7f7
commit
41f80b26cb
@ -127,6 +127,8 @@ void LDLT<MatrixType>::compute(const MatrixType& a)
|
|||||||
m_matrix = a;
|
m_matrix = a;
|
||||||
|
|
||||||
if (size <= 1) {
|
if (size <= 1) {
|
||||||
|
m_p.setZero();
|
||||||
|
m_transpositions.setZero();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user