mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-23 05:14:26 +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();
|
||||
m_matrix.resize(size, size);
|
||||
m_isPositiveDefinite = true;
|
||||
const RealScalar eps = ei_sqrt(precision<Scalar>());
|
||||
const RealScalar eps = precision<Scalar>() * a.cwise().abs().maxCoeff();
|
||||
|
||||
if (size<=1)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user