Skip to content

Commit

Permalink
use the original deflation tolerance
Browse files Browse the repository at this point in the history
  • Loading branch information
yixuan committed Dec 19, 2015
1 parent 31f621b commit b26f1b7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/LinAlg/DoubleShiftQR.h
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,8 @@ class DoubleShiftQR
DoubleShiftQR(Index size) :
m_n(size),
m_prec(std::numeric_limits<Scalar>::epsilon()),
m_eps_rel(m_prec),
m_eps_abs(std::numeric_limits<Scalar>::min() * (Scalar(m_n) / m_prec)),
m_eps_rel(std::pow(m_prec, Scalar(2.0) / 3)),
m_eps_abs(std::min(std::pow(m_prec, Scalar(3.0) / 4), m_n * m_prec)),
m_computed(false)
{}

Expand All @@ -260,8 +260,8 @@ class DoubleShiftQR
m_ref_u(3, m_n),
m_ref_nr(m_n),
m_prec(std::numeric_limits<Scalar>::epsilon()),
m_eps_rel(m_prec),
m_eps_abs(std::numeric_limits<Scalar>::min() * (Scalar(m_n) / m_prec)),
m_eps_rel(std::pow(m_prec, Scalar(2.0) / 3)),
m_eps_abs(std::min(std::pow(m_prec, Scalar(3.0) / 4), m_n * m_prec)),
m_computed(false)
{
compute(mat, s, t);
Expand Down

0 comments on commit b26f1b7

Please sign in to comment.