LLT: makes the non positive definite test less strict, but we still need

something better.
This commit is contained in:
Gael Guennebaud 2009-01-27 23:01:53 +00:00
parent 8ce4503494
commit cf89d9371a
2 changed files with 2 additions and 2 deletions

View File

@ -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>();
if (size<=1)
{

View File

@ -97,7 +97,7 @@ void LLT<MatrixType>::compute(const MatrixType& a)
assert(a.rows()==a.cols());
const int size = a.rows();
m_matrix.resize(size, size);
const RealScalar eps = ei_sqrt(precision<Scalar>());
const RealScalar eps = precision<Scalar>();
RealScalar x;
x = ei_real(a.coeff(0,0));