10#ifndef EIGEN_SPARSE_FUZZY_H
11#define EIGEN_SPARSE_FUZZY_H
13#include "./InternalHeaderCheck.h"
17template<
typename Derived>
18template<
typename OtherDerived>
19bool SparseMatrixBase<Derived>::isApprox(
const SparseMatrixBase<OtherDerived>& other,
const RealScalar &prec)
const
21 const typename internal::nested_eval<Derived,2,PlainObject>::type actualA(derived());
22 typename internal::conditional<bool(IsRowMajor)==bool(OtherDerived::IsRowMajor),
23 const typename internal::nested_eval<OtherDerived,2,PlainObject>::type,
24 const PlainObject>::type actualB(other.derived());
26 return (actualA - actualB).squaredNorm() <= prec * prec * numext::mini(actualA.squaredNorm(), actualB.squaredNorm());
Namespace containing all symbols from the Eigen library.
Definition: B01_Experimental.dox:1