mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-03-07 18:27:40 +08:00
LLT: makes the non positive definite test less strict, but we still need
something better.
This commit is contained in:
parent
8ce4503494
commit
cf89d9371a
@ -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)
|
||||
{
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user