From b3ad796d4087ca768452d1bbe0555a85cd7e1dde Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Mon, 20 Jul 2009 10:44:07 +0200 Subject: [PATCH] bugfix in operator*= (matrix product) --- Eigen/src/Core/Product.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/Core/Product.h b/Eigen/src/Core/Product.h index 05a8221ee..52fb0db2c 100644 --- a/Eigen/src/Core/Product.h +++ b/Eigen/src/Core/Product.h @@ -300,7 +300,7 @@ template inline Derived & MatrixBase::operator*=(const MatrixBase &other) { - return *this = *this * other; + return derived() = derived() * other.derived(); } /***************************************************************************