Eigen::internal::isApprox_selector< Derived, OtherDerived, is_integer > Struct Template Reference

#include <Fuzzy.h>

Static Public Member Functions

static EIGEN_DEVICE_FUNC bool run (const Derived &x, const OtherDerived &y, const typename Derived::RealScalar &prec)
 

Member Function Documentation

◆ run()

template<typename Derived , typename OtherDerived , bool is_integer = NumTraits<typename Derived::Scalar>::IsInteger>
static EIGEN_DEVICE_FUNC bool Eigen::internal::isApprox_selector< Derived, OtherDerived, is_integer >::run ( const Derived &  x,
const OtherDerived &  y,
const typename Derived::RealScalar prec 
)
inlinestatic
23  {
25  typename internal::nested_eval<OtherDerived, 2>::type otherNested(y);
26  return (nested.matrix() - otherNested.matrix()).cwiseAbs2().sum() <=
27  prec * prec * numext::mini(nested.cwiseAbs2().sum(), otherNested.cwiseAbs2().sum());
28  }
const Scalar & y
Definition: RandomImpl.h:36
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE T mini(const T &x, const T &y)
Definition: MathFunctions.h:920
list x
Definition: plotDoE.py:28
std::conditional_t< Evaluate, PlainObject, typename ref_selector< T >::type > type
Definition: XprHelper.h:549

References Eigen::numext::mini(), plotDoE::x, and Eigen::internal::y.

Referenced by Eigen::DenseBase< Derived >::isApprox().


The documentation for this struct was generated from the following file: