19 template<typename Derived, typename OtherDerived, bool is_integer = NumTraits<typename Derived::Scalar>::IsInteger>
    23   static bool run(
const Derived& x, 
const OtherDerived& y, 
const typename Derived::RealScalar& prec)
    27     return (nested - otherNested).cwiseAbs2().sum() <= prec * prec * numext::mini(nested.cwiseAbs2().sum(), otherNested.cwiseAbs2().sum());
    31 template<
typename Derived, 
typename OtherDerived>
    35   static bool run(
const Derived& x, 
const OtherDerived& y, 
const typename Derived::RealScalar&)
    37     return x.matrix() == y.matrix();
    41 template<typename Derived, typename OtherDerived, bool is_integer = NumTraits<typename Derived::Scalar>::IsInteger>
    45   static bool run(
const Derived& x, 
const OtherDerived& y, 
const typename Derived::RealScalar& prec)
    47     return x.cwiseAbs2().sum() <= 
numext::abs2(prec) * y.cwiseAbs2().sum();
    51 template<
typename Derived, 
typename OtherDerived>
    55   static bool run(
const Derived& x, 
const OtherDerived&, 
const typename Derived::RealScalar&)
    57     return x.matrix() == Derived::Zero(x.rows(), x.cols()).matrix();
    61 template<typename Derived, bool is_integer = NumTraits<typename Derived::Scalar>::IsInteger>
    65   static bool run(
const Derived& x, 
const typename Derived::RealScalar& y, 
const typename Derived::RealScalar& prec)
    71 template<
typename Derived>
    75   static bool run(
const Derived& x, 
const typename Derived::RealScalar&, 
const typename Derived::RealScalar&)
    77     return x.matrix() == Derived::Zero(x.rows(), x.cols()).matrix();
   101 template<
typename Derived>
   102 template<
typename OtherDerived>
   124 template<
typename Derived>
   143 template<
typename Derived>
   144 template<
typename OtherDerived>
   155 #endif // EIGEN_FUZZY_H 
Holds information about the various numeric (i.e. scalar) types allowed by Eigen. ...
Base class for all dense matrices, vectors, and arrays. 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Abs2ReturnType abs2() const
static EIGEN_DEVICE_FUNC bool run(const Derived &x, const typename Derived::RealScalar &, const typename Derived::RealScalar &)
static EIGEN_DEVICE_FUNC bool run(const Derived &x, const OtherDerived &, const typename Derived::RealScalar &)
static EIGEN_DEVICE_FUNC bool run(const Derived &x, const typename Derived::RealScalar &y, const typename Derived::RealScalar &prec)
NumTraits< Scalar >::Real RealScalar
EIGEN_DEVICE_FUNC bool isApprox(const DenseBase< OtherDerived > &other, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const
static EIGEN_DEVICE_FUNC bool run(const Derived &x, const OtherDerived &y, const typename Derived::RealScalar &prec)
static EIGEN_DEVICE_FUNC bool run(const Derived &x, const OtherDerived &y, const typename Derived::RealScalar &)
static EIGEN_DEVICE_FUNC bool run(const Derived &x, const OtherDerived &y, const typename Derived::RealScalar &prec)
EIGEN_DEVICE_FUNC bool isMuchSmallerThan(const RealScalar &other, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const