This bugzilla service is closed. All entries have been migrated to https://gitlab.com/libeigen/eigen
View | Details | Raw Unified | Return to bug 89 | Differences between
and this patch

Collapse All | Expand All

(-)a/Eigen/src/Core/Fuzzy.h (-3 / +1 lines)
Lines 34-42 Link Here
34
{
34
{
35
  static bool run(const Derived& x, const OtherDerived& y, typename Derived::RealScalar prec)
35
  static bool run(const Derived& x, const OtherDerived& y, typename Derived::RealScalar prec)
36
  {
36
  {
37
    const typename internal::nested<Derived,2>::type nested(x);
37
    return (x - y).cwiseAbs2().sum() <= prec * prec * std::min(x.cwiseAbs2().sum(), y.cwiseAbs2().sum());
38
    const typename internal::nested<OtherDerived,2>::type otherNested(y);
39
    return (nested - otherNested).cwiseAbs2().sum() <= prec * prec * std::min(nested.cwiseAbs2().sum(), otherNested.cwiseAbs2().sum());
40
  }
38
  }
41
};
39
};
42
40

Return to bug 89