From cf939f154fe1ec9904276f5f3f2dbdbc8e98156a Mon Sep 17 00:00:00 2001 From: Desire NUENTSA Date: Tue, 21 May 2013 17:35:10 +0200 Subject: Fix bug #596 : Recover plain SparseMatrix from SparseQR matrixQ() --- Eigen/src/SparseCore/SparseCwiseBinaryOp.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Eigen/src/SparseCore/SparseCwiseBinaryOp.h') diff --git a/Eigen/src/SparseCore/SparseCwiseBinaryOp.h b/Eigen/src/SparseCore/SparseCwiseBinaryOp.h index d5f97f78f..64b8c8547 100644 --- a/Eigen/src/SparseCore/SparseCwiseBinaryOp.h +++ b/Eigen/src/SparseCore/SparseCwiseBinaryOp.h @@ -300,7 +300,7 @@ template EIGEN_STRONG_INLINE Derived & SparseMatrixBase::operator-=(const SparseMatrixBase &other) { - return *this = derived() - other.derived(); + return derived() = derived() - other.derived(); } template @@ -308,7 +308,7 @@ template EIGEN_STRONG_INLINE Derived & SparseMatrixBase::operator+=(const SparseMatrixBase& other) { - return *this = derived() + other.derived(); + return derived() = derived() + other.derived(); } template -- cgit v1.2.3