mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-09-15 02:43:14 +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();
|
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>();
|
||||||
|
|
||||||
if (size<=1)
|
if (size<=1)
|
||||||
{
|
{
|
||||||
|
@ -97,7 +97,7 @@ void LLT<MatrixType>::compute(const MatrixType& a)
|
|||||||
assert(a.rows()==a.cols());
|
assert(a.rows()==a.cols());
|
||||||
const int size = a.rows();
|
const int size = a.rows();
|
||||||
m_matrix.resize(size, size);
|
m_matrix.resize(size, size);
|
||||||
const RealScalar eps = ei_sqrt(precision<Scalar>());
|
const RealScalar eps = precision<Scalar>();
|
||||||
|
|
||||||
RealScalar x;
|
RealScalar x;
|
||||||
x = ei_real(a.coeff(0,0));
|
x = ei_real(a.coeff(0,0));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user