10 #ifndef EIGEN_SPARSE_FUZZY_H
11 #define EIGEN_SPARSE_FUZZY_H
17 template<
typename Derived>
18 template<
typename OtherDerived>
21 const typename internal::nested_eval<Derived,2,PlainObject>::type actualA(derived());
22 std::conditional_t<
bool(IsRowMajor)==
bool(OtherDerived::IsRowMajor),
23 const typename internal::nested_eval<OtherDerived,2,PlainObject>::type,
26 return (actualA - actualB).squaredNorm() <= prec * prec *
numext::mini(actualA.squaredNorm(), actualB.squaredNorm());
Base class of any sparse matrices or sparse expressions.
bool isApprox(const SparseMatrixBase< OtherDerived > &other, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const
A versatible sparse matrix representation.
EIGEN_ALWAYS_INLINE T mini(const T &x, const T &y)