diff options
author | Gael Guennebaud <g.gael@free.fr> | 2014-09-22 23:33:28 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2014-09-22 23:33:28 +0200 |
commit | ff46ec0f240ef84e2293b33b265c703e9b765c2e (patch) | |
tree | d7be930881e5c9a4dd9d2e0e4109f02235b1e2e4 /Eigen/src/SparseCore/SparseMatrixBase.h | |
parent | ae514ddfe561ef220bc9bbf8c0b7b5005b60d9c8 (diff) |
bug #881: make SparseMatrixBase::isApprox(SparseMatrixBase) exploits sparse computations instead of converting the operands to dense matrices.
Diffstat (limited to 'Eigen/src/SparseCore/SparseMatrixBase.h')
-rw-r--r-- | Eigen/src/SparseCore/SparseMatrixBase.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Eigen/src/SparseCore/SparseMatrixBase.h b/Eigen/src/SparseCore/SparseMatrixBase.h index b5c50d93a..a438c6487 100644 --- a/Eigen/src/SparseCore/SparseMatrixBase.h +++ b/Eigen/src/SparseCore/SparseMatrixBase.h @@ -324,8 +324,7 @@ template<typename Derived> class SparseMatrixBase : public EigenBase<Derived> template<typename OtherDerived> bool isApprox(const SparseMatrixBase<OtherDerived>& other, - const RealScalar& prec = NumTraits<Scalar>::dummy_precision()) const - { return toDense().isApprox(other.toDense(),prec); } + const RealScalar& prec = NumTraits<Scalar>::dummy_precision()) const; template<typename OtherDerived> bool isApprox(const MatrixBase<OtherDerived>& other, |