| 17 | template<typename Derived> |
| 18 | template<typename OtherDerived> |
| 19 | bool SparseMatrixBase<Derived>::isApprox(const SparseMatrixBase<OtherDerived>& other, const RealScalar &prec) const |
| 20 | { |
| 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, |
| 24 | const PlainObject> actualB(other.derived()); |
| 25 | |
| 26 | return (actualA - actualB).squaredNorm() <= prec * prec * numext::mini(actualA.squaredNorm(), actualB.squaredNorm()); |
| 27 | } |
| 28 | |
| 29 | } // end namespace Eigen |
| 30 |
nothing calls this directly
no test coverage detected