mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-23 13:24:28 +08:00
precision improvement. Wtf were we using sqrt(precision) for the cutoff? Replaced by precision*biggest.
This commit is contained in:
parent
1f4b8e6a36
commit
6b3f81b414
@ -97,7 +97,7 @@ void LDLT<MatrixType>::compute(const MatrixType& a)
|
|||||||
const int size = a.rows();
|
const int size = a.rows();
|
||||||
m_matrix.resize(size, size);
|
m_matrix.resize(size, size);
|
||||||
m_isPositiveDefinite = true;
|
m_isPositiveDefinite = true;
|
||||||
const RealScalar eps = ei_sqrt(precision<Scalar>());
|
const RealScalar eps = precision<Scalar>() * a.cwise().abs().maxCoeff();
|
||||||
|
|
||||||
if (size<=1)
|
if (size<=1)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user