10 #ifndef EIGEN_SPARSE_FUZZY_H 11 #define EIGEN_SPARSE_FUZZY_H 15 template<
typename Derived>
16 template<
typename OtherDerived>
17 bool SparseMatrixBase<Derived>::isApprox(
const SparseMatrixBase<OtherDerived>& other,
const RealScalar &prec)
const 19 const typename internal::nested_eval<Derived,2,PlainObject>::type actualA(derived());
20 typename internal::conditional<bool(IsRowMajor)==bool(OtherDerived::IsRowMajor),
21 const typename internal::nested_eval<OtherDerived,2,PlainObject>::type,
22 const PlainObject>::type actualB(other.derived());
24 return (actualA - actualB).squaredNorm() <= prec * prec * numext::mini(actualA.squaredNorm(), actualB.squaredNorm());
29 #endif // EIGEN_SPARSE_FUZZY_H Namespace containing all symbols from the Eigen library.
Definition: bench_norm.cpp:85