10 #ifndef EIGEN_SPARSE_FUZZY_H 11 #define EIGEN_SPARSE_FUZZY_H 15 template<
typename Derived>
16 template<
typename OtherDerived>
24 return (actualA - actualB).squaredNorm() <= prec * prec *
numext::mini(actualA.squaredNorm(), actualB.squaredNorm());
29 #endif // EIGEN_SPARSE_FUZZY_H A versatible sparse matrix representation.
Namespace containing all symbols from the Eigen library.
Base class of any sparse matrices or sparse expressions.
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE T mini(const T &x, const T &y)
const Derived & derived() const
Generic expression where a coefficient-wise unary operator is applied to an expression.
NumTraits< Scalar >::Real RealScalar
bool isApprox(const SparseMatrixBase< OtherDerived > &other, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const