//// This Source Code Form is subject to the terms of the Mozilla// Public License v. 2.0. If a copy of the MPL was not distributed// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.#ifndef EIGEN_SPARSE_FUZZY_H#define EIGEN_SPARSE_FUZZY_H
namespaceEigen{template<typenameDerived>template<typenameOtherDerived>boolSparseMatrixBase<Derived>::isApprox(constSparseMatrixBase<OtherDerived>&other,constRealScalar&prec)const{consttypenameinternal::nested_eval<Derived,2,PlainObject>::typeactualA(derived());typenameinternal::conditional<bool(IsRowMajor)==bool(OtherDerived::IsRowMajor),consttypenameinternal::nested_eval<OtherDerived,2,PlainObject>::type,constPlainObject>::typeactualB(other.derived());return(actualA-actualB).squaredNorm()<=prec*prec*numext::mini(actualA.squaredNorm(),actualB.squaredNorm());}}// end namespace Eigen