11#ifndef EIGEN_SPARSE_APPROX_COMPARISONS_H
12#define EIGEN_SPARSE_APPROX_COMPARISONS_H
15#include "./InternalHeaderCheck.h"
19template <
typename Derived>
20template <
typename OtherDerived>
22 const typename internal::nested_eval<Derived, 2, PlainObject>::type actualA(derived());
23 std::conditional_t<bool(IsRowMajor) == bool(OtherDerived::IsRowMajor),
24 const typename internal::nested_eval<OtherDerived, 2, PlainObject>::type,
const PlainObject>
25 actualB(other.derived());
27 return (actualA - actualB).squaredNorm() <= prec * prec * numext::mini(actualA.squaredNorm(), actualB.squaredNorm());
Base class of any sparse matrices or sparse expressions.
Definition SparseMatrixBase.h:31